summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-24 12:10:52 +0100
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2015-03-24 15:59:40 +0100
commit4da56c0cea4da68a0707b24ad286765400cce0be (patch)
tree407fbcc4032935a8f1f8b064969af59eab4e5647
parenta65e98af992d966ef0a9c4b2f197ab2893fcf47e (diff)
these can be moved out of the loop
Change-Id: Ic2e743e664e6fe62606639c68a17ba81776cc58d
-rw-r--r--sw/source/core/attr/format.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/attr/format.cxx b/sw/source/core/attr/format.cxx
index e8c4c2d73a27..0cca34ca5a8c 100644
--- a/sw/source/core/attr/format.cxx
+++ b/sw/source/core/attr/format.cxx
@@ -238,11 +238,11 @@ SwFmt::~SwFmt()
}
else
{
+ SwFmtChg aOldFmt( this );
+ SwFmtChg aNewFmt( pParentFmt );
SwIterator<SwClient,SwFmt> aIter(*this);
for(SwClient* pClient = aIter.First(); pClient && pParentFmt; pClient = aIter.Next())
{
- SwFmtChg aOldFmt( this );
- SwFmtChg aNewFmt( pParentFmt );
pParentFmt->Add( pClient );
pClient->ModifyNotification( &aOldFmt, &aNewFmt );
}