diff options
-rw-r--r-- | unoidl/source/sourcetreeprovider.cxx | 4 |
1 files 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); |