diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:20:05 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-10 16:20:39 +0100 |
commit | aa4d195143fec01fba5c0a0f41950f1cbddbc9bd (patch) | |
tree | bd852c7ba48e59a4ef22e740be01cd77a874484a /unoidl | |
parent | 103d1f44864b49ca99cbadd59a5cb49a34fd1cab (diff) |
loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: I06921ce068a3ffc9c1502326f03e9b13ee1c6ef6
Diffstat (limited to 'unoidl')
-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); |