Kaydet (Commit) 88613ffe authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735859 Explicit null dereferenced

Change-Id: I8edbf48bc981b4636dd55b5f4cd2b314d387486d
üst 1084a752
...@@ -62,16 +62,12 @@ void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/, ...@@ -62,16 +62,12 @@ void SvxContourDlgItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
if ( pItem && ( SID_CONTOUR_EXEC == nSID ) ) if ( pItem && ( SID_CONTOUR_EXEC == nSID ) )
{ {
const SfxBoolItem* pStateItem = PTR_CAST( SfxBoolItem, pItem ); const SfxBoolItem* pStateItem = PTR_CAST( SfxBoolItem, pItem );
assert(pStateItem); //SfxBoolItem expected
DBG_ASSERT( pStateItem || pItem == 0, "SfxBoolItem expected "); if (pStateItem)
rDlg.SetExecState(!pStateItem->GetValue());
rDlg.SetExecState( !pStateItem->GetValue() );
} }
} }
/******************************************************************************/
SvxContourDlgChildWindow::SvxContourDlgChildWindow( Window* _pParent, sal_uInt16 nId, SvxContourDlgChildWindow::SvxContourDlgChildWindow( Window* _pParent, sal_uInt16 nId,
SfxBindings* pBindings, SfxChildWinInfo* pInfo ) : SfxBindings* pBindings, SfxChildWinInfo* pInfo ) :
SfxChildWindow( _pParent, nId ) SfxChildWindow( _pParent, nId )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment