diff options
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index b09fc6801e11..5f3afa8a64f9 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -2148,12 +2148,8 @@ WW8DupProperties::WW8DupProperties(SwDoc &rDoc, SwWW8FltControlStack *pStack) void WW8DupProperties::Insert(const SwPosition &rPos) { - const SfxItemSet *pSet=&aChrSet; - for(int i=0;i<2;i++) + for (const SfxItemSet* pSet : {&aChrSet, &aParSet}) { - if (i==1) - pSet = &aParSet; - if( pSet->Count() ) { SfxItemIter aIter( *pSet ); |