summaryrefslogtreecommitdiff
path: root/sfx2/source/doc/objembed.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-10 10:23:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-10 10:31:38 +0100
commit28034eaf925aa50d379dd5cffccc20d7edc95aec (patch)
tree5cde1f141bc0ffc5cb04a12980d0c4bce69de0f0 /sfx2/source/doc/objembed.cxx
parentd930b6c2e6e3dfb9e1ed19b84a3137cc0cfbfd8c (diff)
loplugin:nullptr (automatic rewrite)
Change-Id: I7213b49b09ddcb00841aa5f63343baeab0e65fa4
Diffstat (limited to 'sfx2/source/doc/objembed.cxx')
-rw-r--r--sfx2/source/doc/objembed.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/doc/objembed.cxx b/sfx2/source/doc/objembed.cxx
index cb05205e2908..49d0518fdd9b 100644
--- a/sfx2/source/doc/objembed.cxx
+++ b/sfx2/source/doc/objembed.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star;
// TODO/LATER: this workaround must be replaced by API in future if possible
SfxObjectShell* SfxObjectShell::GetParentShellByModel_Impl()
{
- SfxObjectShell* pResult = NULL;
+ SfxObjectShell* pResult = nullptr;
try {
uno::Reference< container::XChild > xChildModel( GetModel(), uno::UNO_QUERY );
@@ -73,7 +73,7 @@ Printer* SfxObjectShell::GetDocumentPrinter()
SfxObjectShell* pParent = GetParentShellByModel_Impl();
if ( pParent )
return pParent->GetDocumentPrinter();
- return NULL;
+ return nullptr;
}
@@ -82,7 +82,7 @@ OutputDevice* SfxObjectShell::GetDocumentRefDev()
SfxObjectShell* pParent = GetParentShellByModel_Impl();
if ( pParent )
return pParent->GetDocumentRefDev();
- return NULL;
+ return nullptr;
}
@@ -203,7 +203,7 @@ void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev,
aMapMode.SetScaleY( rScaleY );
// Target in Pixels
- Point aOrg = pDev->LogicToLogic( rViewPos, NULL, &aMapMode );
+ Point aOrg = pDev->LogicToLogic( rViewPos, nullptr, &aMapMode );
Point aDelta = aOrg - aVisArea.TopLeft();
// Origin moved according to the viewable area
@@ -227,7 +227,7 @@ void SfxObjectShell::DoDraw_Impl( OutputDevice* pDev,
if( pMtf->IsRecord() && pDev->GetOutDevType() != OUTDEV_PRINTER )
pMtf->Stop();
else
- pMtf = NULL;
+ pMtf = nullptr;
}
if( pDev->IsClipRegion() && pDev->GetOutDevType() != OUTDEV_PRINTER )
{