summaryrefslogtreecommitdiff
path: root/unoidl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 16:20:05 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 16:20:39 +0100
commitaa4d195143fec01fba5c0a0f41950f1cbddbc9bd (patch)
treebd852c7ba48e59a4ef22e740be01cd77a874484a /unoidl
parent103d1f44864b49ca99cbadd59a5cb49a34fd1cab (diff)
loplugin:nullptr (automatic rewrite; Mac-specific code)
Change-Id: I06921ce068a3ffc9c1502326f03e9b13ee1c6ef6
Diffstat (limited to 'unoidl')
-rw-r--r--unoidl/source/sourcetreeprovider.cxx4
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);