Kaydet (Commit) 4da56c0c authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

these can be moved out of the loop

Change-Id: Ic2e743e664e6fe62606639c68a17ba81776cc58d
üst a65e98af
...@@ -238,11 +238,11 @@ SwFmt::~SwFmt() ...@@ -238,11 +238,11 @@ SwFmt::~SwFmt()
} }
else else
{ {
SwFmtChg aOldFmt( this );
SwFmtChg aNewFmt( pParentFmt );
SwIterator<SwClient,SwFmt> aIter(*this); SwIterator<SwClient,SwFmt> aIter(*this);
for(SwClient* pClient = aIter.First(); pClient && pParentFmt; pClient = aIter.Next()) for(SwClient* pClient = aIter.First(); pClient && pParentFmt; pClient = aIter.Next())
{ {
SwFmtChg aOldFmt( this );
SwFmtChg aNewFmt( pParentFmt );
pParentFmt->Add( pClient ); pParentFmt->Add( pClient );
pClient->ModifyNotification( &aOldFmt, &aNewFmt ); pClient->ModifyNotification( &aOldFmt, &aNewFmt );
} }
......
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