diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-21 19:52:24 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-21 20:05:23 +0400 |
commit | 46fd2a3bf2a53c64c040590afe450505fcb13c10 (patch) | |
tree | ab1b25e36b949cdec94a98a4eb5ca72ed1b2efce /sw | |
parent | a4aa96be3a9e24099a45850cadd5074d2db9a199 (diff) |
use a for loop
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/rtf/rtfnum.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/source/filter/rtf/rtfnum.cxx b/sw/source/filter/rtf/rtfnum.cxx index f6eb0c015a52..dbd051c6d226 100644 --- a/sw/source/filter/rtf/rtfnum.cxx +++ b/sw/source/filter/rtf/rtfnum.cxx @@ -594,8 +594,9 @@ void SwRTFParser::ReadListOverrideTable() std::map<sal_Int32,SwTxtFmtColl*>::const_iterator iterColl; sal_uInt16 nRulePos( USHRT_MAX ); const SwNumRule *pNumRule = 0; - SvxRTFStyleTbl::iterator it = GetStyleTbl().begin(); - do { + for (SvxRTFStyleTbl::iterator it = GetStyleTbl().begin(); + it != GetStyleTbl().end(); ++it) + { SvxRTFStyleType* pStyle = it->second; if ( MAXLEVEL > pStyle->nOutlineNo ) { @@ -635,9 +636,7 @@ void SwRTFParser::ReadListOverrideTable() } pStyle->aAttrSet.ClearItem( FN_PARAM_NUM_LEVEL ); - - ++it; - } while( it != GetStyleTbl().end() ); + } } SkipToken( -1 ); // die schliesende Klammer wird "oben" ausgewertet |