summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-10-17 20:00:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-19 06:48:51 +0000
commit2d64fcf4c8d3316ad9ae2232601678553dcad6a3 (patch)
treea9ba7d5d36c0f65cc9a2110703c613689dc3f591 /sd
parentsfx items: Kill the SFX_ITEMSET_GET macro. (diff)
downloadcore-2d64fcf4c8d3316ad9ae2232601678553dcad6a3.tar.gz
core-2d64fcf4c8d3316ad9ae2232601678553dcad6a3.zip
cppcheck:nullPointerRedundantCheck
Change-Id: I00a58a90f96e9eaf681239146213706e278ea5e1 Reviewed-on: https://gerrit.libreoffice.org/19421 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/app/sdmod1.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index cdadcc55a3bc..7dc21b231dc9 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -526,8 +526,6 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
if ( pFrmItem )
xTargetFrame = pFrmItem->GetFrame();
- SfxViewFrame* pViewFrame = NULL;
-
SdOptions* pOpt = GetSdOptions(DOCUMENT_TYPE_IMPRESS);
bool bStartWithTemplate = pOpt->IsStartWithTemplate();
@@ -636,7 +634,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
SfxObjectShell* pShell = xShell;
if( pShell )
{
- pViewFrame = SfxViewFrame::LoadDocumentIntoFrame( *pShell, xTargetFrame );
+ SfxViewFrame* pViewFrame = SfxViewFrame::LoadDocumentIntoFrame( *pShell, xTargetFrame );
DBG_ASSERT( pViewFrame, "no ViewFrame!!" );
pFrame = pViewFrame ? &pViewFrame->GetFrame() : NULL;