Kaydet (Commit) 63ea2d46 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

replace while with for

Change-Id: I752376e42bf745b33a7be7478531eebd42893926
üst 3575dba9
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment