From 8a2da50632059be5845c0bf6c2fbbf7d7e560c43 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 10 Oct 2014 11:30:11 +0100 Subject: coverity#704776 Dereference after null check Change-Id: Ifbad1fc30665ff6b9238b5fb4728fc302b0458fa --- sd/source/ui/view/drviews1.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sd') 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) { -- cgit