From aa4d195143fec01fba5c0a0f41950f1cbddbc9bd Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 10 Nov 2015 16:20:05 +0100 Subject: [PATCH] loplugin:nullptr (automatic rewrite; Mac-specific code) Change-Id: I06921ce068a3ffc9c1502326f03e9b13ee1c6ef6 --- unoidl/source/sourcetreeprovider.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unoidl/source/sourcetreeprovider.cxx b/unoidl/source/sourcetreeprovider.cxx index 526d3321afb7..640318c41dad 100644 --- a/unoidl/source/sourcetreeprovider.cxx +++ b/unoidl/source/sourcetreeprovider.cxx @@ -53,7 +53,7 @@ OUString getFileName(OUString const & uri, osl::FileStatus & status) { OString dir(OUStringToOString(path, osl_getThreadTextEncoding())); OString name(OUStringToOString(uri.copy(i), osl_getThreadTextEncoding())); DIR * d = opendir(dir.getStr()); - if (d == 0) { + if (d == nullptr) { SAL_WARN("unoidl", "cannot opendir(" << dir << ")"); return status.getFileName(); } @@ -66,7 +66,7 @@ OUString getFileName(OUString const & uri, osl::FileStatus & status) { closedir(d); return status.getFileName(); } - if (p == 0) { + if (p == nullptr) { SAL_WARN( "unoidl", "cannot find " << name << " via readdir of " << dir); closedir(d);