summaryrefslogtreecommitdiff
path: root/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:02 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:38 +0100
commit92c697c0e3e4bde88424322875c993c161696b1e (patch)
treeea1be62a0cb8fd7f7e63dd03a52441cedd8e96eb /sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
parent65464ed0985802edb96dbcbd1c3eed996f3778bd (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: If1b80da64ba575f07b31dce9bc0e34b7eb9f11a4
Diffstat (limited to 'sd/source/ui/sidebar/RecentMasterPagesSelector.cxx')
-rw-r--r--sd/source/ui/sidebar/RecentMasterPagesSelector.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx b/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
index c4492e837b87..f9a23f115aab 100644
--- a/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
+++ b/sd/source/ui/sidebar/RecentMasterPagesSelector.cxx
@@ -38,8 +38,8 @@ VclPtr<vcl::Window> RecentMasterPagesSelector::Create (
const css::uno::Reference<css::ui::XSidebar>& rxSidebar)
{
SdDrawDocument* pDocument = rViewShellBase.GetDocument();
- if (pDocument == NULL)
- return NULL;
+ if (pDocument == nullptr)
+ return nullptr;
std::shared_ptr<MasterPageContainer> pContainer (new MasterPageContainer());
@@ -100,7 +100,7 @@ void RecentMasterPagesSelector::Fill (ItemList& rItemList)
for (nIndex=0; nIndex<nMasterPageCount; nIndex++)
{
SdPage* pMasterPage = mrDocument.GetMasterSdPage (nIndex, PK_STANDARD);
- if (pMasterPage != NULL)
+ if (pMasterPage != nullptr)
aCurrentNames.insert (pMasterPage->GetName());
}