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

coverity#704754 Dereference after null check

Change-Id: I3c70c9cfe84dc74836cf733e424cf7c2cd195c4f
üst 229e59d4
...@@ -91,28 +91,28 @@ void FuParagraph::DoExecute( SfxRequest& rReq ) ...@@ -91,28 +91,28 @@ void FuParagraph::DoExecute( SfxRequest& rReq )
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
SfxAbstractTabDialog* pDlg = pFact ? pFact->CreateSdParagraphTabDlg(NULL, &aNewAttr ) : 0; SfxAbstractTabDialog* pDlg = pFact ? pFact->CreateSdParagraphTabDlg(NULL, &aNewAttr ) : 0;
if( pDlg ) if (!pDlg)
return;
sal_uInt16 nResult = pDlg->Execute();
switch( nResult )
{ {
sal_uInt16 nResult = pDlg->Execute(); case RET_OK:
{
rReq.Done( *( pDlg->GetOutputItemSet() ) );
pArgs = rReq.GetArgs();
}
break;
switch( nResult ) default:
{ {
case RET_OK: delete pDlg;
{
rReq.Done( *( pDlg->GetOutputItemSet() ) );
pArgs = rReq.GetArgs();
}
break;
default:
{
delete pDlg;
}
return; // Cancel
} }
delete( pDlg ); return; // Cancel
} }
delete( pDlg );
} }
mpView->SetAttributes( *pArgs ); mpView->SetAttributes( *pArgs );
......
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