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