summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-07-02 19:10:24 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-07-02 23:03:08 +0200
commit63ea2d467b50452ae0cab18b4151107a747ae70d (patch)
tree06d1e41588403b9a27e39a448f8b8de4847fe122 /sc
parent3575dba98d427cfe80716befea6f0f21748f88f5 (diff)
replace while with for
Change-Id: I752376e42bf745b33a7be7478531eebd42893926
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/xml/xmlstyle.cxx8
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;
}
}
}