Kaydet (Commit) f88576cb authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Move var decl to where it gets actually used

Change-Id: I8f9e74f7fbbff055c67cafba5d534db4635e5399
üst 1c035f1b
...@@ -215,10 +215,11 @@ SwAccessibleFrameBase::~SwAccessibleFrameBase() ...@@ -215,10 +215,11 @@ SwAccessibleFrameBase::~SwAccessibleFrameBase()
void SwAccessibleFrameBase::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) void SwAccessibleFrameBase::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew)
{ {
sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0 ; sal_uInt16 nWhich = pOld ? pOld->Which() : pNew ? pNew->Which() : 0 ;
const SwFlyFrame *pFlyFrame = static_cast< const SwFlyFrame * >( GetFrame() );
switch( nWhich ) switch( nWhich )
{ {
case RES_NAME_CHANGED: case RES_NAME_CHANGED:
{
const SwFlyFrame *pFlyFrame = static_cast< const SwFlyFrame * >( GetFrame() );
if( pFlyFrame ) if( pFlyFrame )
{ {
const SwFrameFormat *pFrameFormat = pFlyFrame->GetFormat(); const SwFrameFormat *pFrameFormat = pFlyFrame->GetFormat();
...@@ -242,6 +243,7 @@ void SwAccessibleFrameBase::Modify( const SfxPoolItem* pOld, const SfxPoolItem * ...@@ -242,6 +243,7 @@ void SwAccessibleFrameBase::Modify( const SfxPoolItem* pOld, const SfxPoolItem *
} }
} }
break; break;
}
case RES_OBJECTDYING: case RES_OBJECTDYING:
// mba: it seems that this class intentionally does not call code in base class SwClient // mba: it seems that this class intentionally does not call code in base class SwClient
if( pOld && ( GetRegisteredIn() == static_cast< SwModify *>( static_cast< const SwPtrMsgPoolItem * >( pOld )->pObject ) ) ) if( pOld && ( GetRegisteredIn() == static_cast< SwModify *>( static_cast< const SwPtrMsgPoolItem * >( pOld )->pObject ) ) )
......
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