Kaydet (Commit) aa4d1951 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:nullptr (automatic rewrite; Mac-specific code)

Change-Id: I06921ce068a3ffc9c1502326f03e9b13ee1c6ef6
üst 103d1f44
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment