summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2017-01-20 20:16:27 +0000
committerPedro Giffuni <pfg@apache.org>2017-01-20 20:16:27 +0000
commit22bae4d4a630509ddbf026bf8a79d1c43af55442 (patch)
treed2341fd16b2191933df63c835898693dadd122f6
parent5cf449daa11726dc29f20f23f1e74b2564dc0551 (diff)
Fix mismatches found by Clang-4.0.
Reported on FreeBSD's bugzilla [1]. Unfortunately it is likely more issues remain. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216206
Notes
Notes: prefer: 3f02f62e5c74832d4215d327b0f7eec6087da826
-rw-r--r--desktop/source/deployment/misc/dp_misc.cxx2
-rw-r--r--sd/source/ui/view/viewshe3.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/source/deployment/misc/dp_misc.cxx b/desktop/source/deployment/misc/dp_misc.cxx
index b31c4f35ae09..9903eab73820 100644
--- a/desktop/source/deployment/misc/dp_misc.cxx
+++ b/desktop/source/deployment/misc/dp_misc.cxx
@@ -103,7 +103,7 @@ const OUString OfficePipeId::operator () ()
}
rtlDigest digest = rtl_digest_create( rtl_Digest_AlgorithmMD5 );
- if (digest <= 0) {
+ if (digest == nullptr) {
throw RuntimeException(
OUSTR("cannot get digest rtl_Digest_AlgorithmMD5!"), 0 );
}
diff --git a/sd/source/ui/view/viewshe3.cxx b/sd/source/ui/view/viewshe3.cxx
index 0ae714598096..e196261003ee 100644
--- a/sd/source/ui/view/viewshe3.cxx
+++ b/sd/source/ui/view/viewshe3.cxx
@@ -226,7 +226,7 @@ SdPage* ViewShell::CreateOrDuplicatePage (
// When the given page is NULL then use the first page of the document.
SdPage* pTemplatePage = pPage;
if (pTemplatePage == NULL)
- if (pDocument->GetSdPage(0, ePageKind) > 0)
+ if (pDocument->GetSdPage(0, ePageKind) != nullptr)
pTemplatePage = pDocument->GetSdPage(0, ePageKind);
if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage())
aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers();