summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-14 13:12:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-14 13:42:19 +0100
commit2fff4927c4401f81b183883c94cb18d0b7806ca6 (patch)
treec7d1bf308bb750164fce43349b699541e0dc854c /sd
parentf9a90514dec3dfbf1aea74a9296513c830ec6481 (diff)
coverity#1242426 Dereference after null check
Change-Id: I59c96846aa5bf4780e4c5bfb0b71242e3b928976
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/docshell/docshel2.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx
index 923e70b407f2..0cf004be3498 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -296,8 +296,7 @@ bool DrawDocShell::CheckPageName (vcl::Window* pWin, OUString& rName )
{
aNameDlg->SetEditHelpId( HID_SD_NAMEDIALOG_PAGE );
- if( mpViewShell )
- aNameDlg->SetCheckNameHdl( LINK( this, DrawDocShell, RenameSlideHdl ) );
+ aNameDlg->SetCheckNameHdl( LINK( this, DrawDocShell, RenameSlideHdl ) );
rtl::Reference<FuPoor> xFunc( mpViewShell->GetCurrentFunction() );
if( xFunc.is() )