coverity#705810 Dereference before null check

Change-Id: I2fab51f08c461faaf4b88b4b7c0b887ba877226c
This commit is contained in:
Caolán McNamara
2014-01-28 14:06:33 +00:00
parent 40a8fecb58
commit b78b5b1da5

View File

@@ -199,12 +199,9 @@ namespace bib
{
createToolBar();
createGridWin();
if ( pDatMan )
pDatMan->SetToolbar(pToolBar);
pDatMan->SetToolbar(pToolBar);
pGridWin->Show();
if ( pDatMan )
connectForm( pDatMan );
connectForm( pDatMan );
}
//---------------------------------------------------------------------
@@ -218,8 +215,7 @@ namespace bib
if ( pToolBar )
{
if ( pDatMan )
pDatMan->SetToolbar(0);
pDatMan->SetToolbar(0);
DELETEZ( pToolBar );
}