summaryrefslogtreecommitdiff
path: root/svx/source/dialog/_contdlg.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-07 12:07:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-07 15:47:26 +0100
commit88613ffedac1211c76c73ca9a979cf920fbd3c52 (patch)
treeaddfc1aecf925d5865a970ef014e1ec25b055d9d /svx/source/dialog/_contdlg.cxx
parent1084a75242729619967da7275fd2f42704954277 (diff)
coverity#735859 Explicit null dereferenced
Change-Id: I8edbf48bc981b4636dd55b5f4cd2b314d387486d
Diffstat (limited to 'svx/source/dialog/_contdlg.cxx')
-rw-r--r--svx/source/dialog/_contdlg.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/svx/source/dialog/_contdlg.cxx b/svx/source/dialog/_contdlg.cxx
index c81d40f5f9a3..817202e4e3f1 100644
--- a/svx/source/dialog/_contdlg.cxx
+++ b/svx/source/dialog/_contdlg.cxx
@@ -62,16 +62,12 @@ void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
if ( pItem && ( SID_CONTOUR_EXEC == nSID ) )
{
const SfxBoolItem* pStateItem = PTR_CAST( SfxBoolItem, pItem );
-
- DBG_ASSERT( pStateItem || pItem == 0, "SfxBoolItem expected ");
-
- rDlg.SetExecState( !pStateItem->GetValue() );
+ assert(pStateItem); //SfxBoolItem expected
+ if (pStateItem)
+ rDlg.SetExecState(!pStateItem->GetValue());
}
}
-
-/******************************************************************************/
-
SvxContourDlgChildWindow::SvxContourDlgChildWindow( Window* _pParent, sal_uInt16 nId,
SfxBindings* pBindings, SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId )