summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter/xml/xmlAutoStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/filter/xml/xmlAutoStyle.cxx')
-rw-r--r--dbaccess/source/filter/xml/xmlAutoStyle.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/dbaccess/source/filter/xml/xmlAutoStyle.cxx b/dbaccess/source/filter/xml/xmlAutoStyle.cxx
index cfa5829f2ad5..c9e328867b7a 100644
--- a/dbaccess/source/filter/xml/xmlAutoStyle.cxx
+++ b/dbaccess/source/filter/xml/xmlAutoStyle.cxx
@@ -39,24 +39,22 @@ void OXMLAutoStylePoolP::exportStyleAttributes(
if ( nFamily == XML_STYLE_FAMILY_TABLE_COLUMN )
{
rtl::Reference< XMLPropertySetMapper > aPropMapper = rODBExport.GetColumnStylesPropertySetMapper();
- std::vector< XMLPropertyState >::const_iterator i = rProperties.begin();
- std::vector< XMLPropertyState >::const_iterator aEnd = rProperties.end();
- for ( ; i != aEnd ; ++i )
+ for (auto const& property : rProperties)
{
- sal_Int16 nContextID = aPropMapper->GetEntryContextId(i->mnIndex);
+ sal_Int16 nContextID = aPropMapper->GetEntryContextId(property.mnIndex);
switch (nContextID)
{
case CTF_DB_NUMBERFORMAT :
{
sal_Int32 nNumberFormat = 0;
- if ( i->maValue >>= nNumberFormat )
+ if ( property.maValue >>= nNumberFormat )
{
OUString sAttrValue = rODBExport.getDataStyleName(nNumberFormat);
if ( !sAttrValue.isEmpty() )
{
GetExport().AddAttribute(
- aPropMapper->GetEntryNameSpace(i->mnIndex),
- aPropMapper->GetEntryXMLName(i->mnIndex),
+ aPropMapper->GetEntryNameSpace(property.mnIndex),
+ aPropMapper->GetEntryXMLName(property.mnIndex),
sAttrValue );
}
}