summaryrefslogtreecommitdiff
path: root/dbaccess/source/filter/xml/xmlExport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'dbaccess/source/filter/xml/xmlExport.cxx')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 5c7bfb047e67..29ecde32b0ce 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -1176,29 +1176,26 @@ void ODBExport::exportAutoStyle(XPropertySet* _xProp)
std::vector< XMLPropertyState > aPropStates = i.first->Filter( _xProp );
if ( !aPropStates.empty() )
{
- std::vector< XMLPropertyState >::iterator aItr = aPropStates.begin();
- std::vector< XMLPropertyState >::const_iterator aEnd = aPropStates.end();
const rtl::Reference < XMLPropertySetMapper >& pStyle = i.first->getPropertySetMapper();
- while ( aItr != aEnd )
+ for (auto & propState : aPropStates)
{
- if ( aItr->mnIndex != -1 )
+ if ( propState.mnIndex != -1 )
{
- switch ( pStyle->GetEntryContextId(aItr->mnIndex) )
+ switch ( pStyle->GetEntryContextId(propState.mnIndex) )
{
case CTF_DB_NUMBERFORMAT:
{
sal_Int32 nNumberFormat = -1;
- if ( aItr->maValue >>= nNumberFormat )
+ if ( propState.maValue >>= nNumberFormat )
addDataStyle(nNumberFormat);
}
break;
case CTF_DB_COLUMN_TEXT_ALIGN:
- if ( !aItr->maValue.hasValue() )
- aItr->maValue <<= css::awt::TextAlign::LEFT;
+ if ( !propState.maValue.hasValue() )
+ propState.maValue <<= css::awt::TextAlign::LEFT;
break;
}
}
- ++aItr;
}
}