coverity#704894 Explicit NULL derefenced
Change-Id: If1e812f9b3c93c8e81817dc599d1d732dbc68b0c
This commit is contained in:
@@ -2836,7 +2836,7 @@ void SwFlyFrmFmt::MakeFrms()
|
|||||||
|
|
||||||
if( bAdd )
|
if( bAdd )
|
||||||
{
|
{
|
||||||
SwFlyFrm *pFly = 0;
|
SwFlyFrm *pFly;
|
||||||
switch( aAnchorAttr.GetAnchorId() )
|
switch( aAnchorAttr.GetAnchorId() )
|
||||||
{
|
{
|
||||||
case FLY_AT_FLY:
|
case FLY_AT_FLY:
|
||||||
@@ -2848,12 +2848,12 @@ void SwFlyFrmFmt::MakeFrms()
|
|||||||
pFly = new SwFlyAtCntFrm( this, pFrm, pFrm );
|
pFly = new SwFlyAtCntFrm( this, pFrm, pFrm );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
assert(false && "Neuer Ankertyp" );
|
||||||
|
//fall-through
|
||||||
case FLY_AS_CHAR:
|
case FLY_AS_CHAR:
|
||||||
pFly = new SwFlyInCntFrm( this, pFrm, pFrm );
|
pFly = new SwFlyInCntFrm( this, pFrm, pFrm );
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
OSL_ENSURE( false, "Neuer Ankertyp" );
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
pFrm->AppendFly( pFly );
|
pFrm->AppendFly( pFly );
|
||||||
SwPageFrm *pPage = pFly->FindPageFrm();
|
SwPageFrm *pPage = pFly->FindPageFrm();
|
||||||
|
Reference in New Issue
Block a user