summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorIvan Timofeev <timofeev.i.s@gmail.com>2012-02-21 19:52:24 +0400
committerIvan Timofeev <timofeev.i.s@gmail.com>2012-02-21 20:05:23 +0400
commit46fd2a3bf2a53c64c040590afe450505fcb13c10 (patch)
treeab1b25e36b949cdec94a98a4eb5ca72ed1b2efce /sw
parentconvert svxrtf.hxx in editeng module from table.hxx to std::map (diff)
downloadcore-46fd2a3bf2a53c64c040590afe450505fcb13c10.tar.gz
core-46fd2a3bf2a53c64c040590afe450505fcb13c10.zip
use a for loop
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/rtf/rtfnum.cxx9
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