diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-10-03 14:28:36 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-10-04 12:14:24 +0000 |
commit | d954f856a9909a582b089fd9339b0930d57914d7 (patch) | |
tree | 1a2885631d2f56e081819de5b5a808128a61e292 | |
parent | 2c3ebb202f6c83706c07efe39cd6d9ab48b4f4c4 (diff) |
simplify loop
Change-Id: I7c6041239fcd5f0fa29fffcb34f06085306a1682
Reviewed-on: https://gerrit.libreoffice.org/29487
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-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 ); |