diff options
author | Pedro Giffuni <pfg@apache.org> | 2017-01-21 03:15:46 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2017-01-21 03:15:46 +0000 |
commit | 152740fe1ca977d6717b4bf57c71b2d5dddb4e4a (patch) | |
tree | 3f326ec5314d728118a98679e929f33094235db9 | |
parent | 197db69bfe23baca1737841fd677b267783c8a81 (diff) |
Replace nullptr with NULL.
It appears that MSVC 2008 [1] doesn't support nullptr so we are tied to
the older ages. Pre-existing code uses NULL.
[1]
https://en.wikipedia.org/wiki/Visual_C%2B%2B
Notes
Notes:
ignore: obsolete
-rw-r--r-- | desktop/source/deployment/misc/dp_misc.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/viewshe3.cxx | 2 |
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 9903eab73820..7c4dba053031 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 == nullptr) { + if (digest == NULL) { 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 e196261003ee..7fc85cdd5434 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) != nullptr) + if (pDocument->GetSdPage(0, ePageKind) != NULL) pTemplatePage = pDocument->GetSdPage(0, ePageKind); if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage()) aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers(); |