summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-10 11:30:11 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-10 12:50:23 +0100
commit8a2da50632059be5845c0bf6c2fbbf7d7e560c43 (patch)
treec2697f0b10a220ada968cb677d2d5160c1624ae7 /sd
parent7d746fe50b991a51527aabbadd152ec705c683b3 (diff)
coverity#704776 Dereference after null check
Change-Id: Ifbad1fc30665ff6b9238b5fb4728fc302b0458fa
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviews1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 588cc5088b31..93814cc08726 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -850,8 +850,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
}
}
- if( mpDrawView )
- mpDrawView->SdrEndTextEdit();
+ mpDrawView->SdrEndTextEdit();
mpActualPage = NULL;
@@ -984,7 +983,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
/**********************************************************************
* MASTERPAGE
**********************************************************************/
- SdrPageView* pPageView = mpDrawView ? mpDrawView->GetSdrPageView() : NULL;
+ SdrPageView* pPageView = mpDrawView->GetSdrPageView();
if (pPageView)
{