diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 12:07:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-07 15:47:26 +0100 |
commit | 88613ffedac1211c76c73ca9a979cf920fbd3c52 (patch) | |
tree | addfc1aecf925d5865a970ef014e1ec25b055d9d /svx | |
parent | 1084a75242729619967da7275fd2f42704954277 (diff) |
coverity#735859 Explicit null dereferenced
Change-Id: I8edbf48bc981b4636dd55b5f4cd2b314d387486d
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/_contdlg.cxx | 10 |
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 ) |