diff options
author | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-02 19:10:24 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-07-02 23:03:08 +0200 |
commit | 63ea2d467b50452ae0cab18b4151107a747ae70d (patch) | |
tree | 06d1e41588403b9a27e39a448f8b8de4847fe122 /sc | |
parent | 3575dba98d427cfe80716befea6f0f21748f88f5 (diff) |
replace while with for
Change-Id: I752376e42bf745b33a7be7478531eebd42893926
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/xml/xmlstyle.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/filter/xml/xmlstyle.cxx b/sc/source/filter/xml/xmlstyle.cxx index 9763f3d558fa..a1d24f176b68 100644 --- a/sc/source/filter/xml/xmlstyle.cxx +++ b/sc/source/filter/xml/xmlstyle.cxx @@ -623,7 +623,7 @@ void ScXMLAutoStylePoolP::exportStyleAttributes( { ::std::vector< XMLPropertyState >::const_iterator i(rProperties.begin()); ::std::vector< XMLPropertyState >::const_iterator endi(rProperties.end()); - while (i != endi) + for(; i != endi; ++i) { rtl::Reference< XMLPropertySetMapper > aPropMapper(rScXMLExport.GetCellStylesPropertySetMapper()); sal_Int16 nContextID(aPropMapper->GetEntryContextId(i->mnIndex)); @@ -646,14 +646,13 @@ void ScXMLAutoStylePoolP::exportStyleAttributes( } break; } - ++i; } } else if (nFamily == XML_STYLE_FAMILY_TABLE_TABLE) { ::std::vector< XMLPropertyState >::const_iterator i(rProperties.begin()); ::std::vector< XMLPropertyState >::const_iterator endi(rProperties.end()); - while(i != endi) + for(; i != endi; ++i) { rtl::Reference< XMLPropertySetMapper > aPropMapper(rScXMLExport.GetTableStylesPropertySetMapper()); sal_Int16 nContextID(aPropMapper->GetEntryContextId(i->mnIndex)); @@ -692,7 +691,7 @@ void ScXMLAutoStylePoolP::exportStyleContent( bool bNotFound = true; ::std::vector< XMLPropertyState >::const_iterator i(rProperties.begin()); ::std::vector< XMLPropertyState >::const_iterator endi(rProperties.end()); - while ((i != endi) && bNotFound) + for(; i != endi && bNotFound; ++i) { if (i->mnIndex != -1) { @@ -793,7 +792,6 @@ void ScXMLAutoStylePoolP::exportStyleContent( break; } } - ++i; } } } |