summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-12-02 13:47:32 +0100
committerJulien Nabet <serval2412@yahoo.fr>2017-12-02 22:13:31 +0100
commit279674b3024d83601e928e74e128892ca8762dc7 (patch)
tree40446164deb368ddaf9f474f99f6e304d3e03dbd /xmloff
parent2f2c7c3dadda7a20c8d49e6ea044887a94d2d46e (diff)
Replace list by vector in xmlexp (xmloff/sw)
Use for-range loop with "auto" to modernize a bit Change-Id: I9efd7ad2d60eac6a6ce0f79af6ccb02ec235c35d Reviewed-on: https://gerrit.libreoffice.org/45711 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/core/xmlexp.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 329fe258b766..85b7152ee566 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1077,7 +1077,7 @@ void SvXMLExport::ImplExportSettings()
{
CheckAttrList();
- ::std::list< SettingsGroup > aSettings;
+ ::std::vector< SettingsGroup > aSettings;
sal_Int32 nSettingsCount = 0;
// view settings
@@ -1104,17 +1104,14 @@ void SvXMLExport::ImplExportSettings()
SettingsExportFacade aSettingsExportContext( *this );
XMLSettingsExportHelper aSettingsExportHelper( aSettingsExportContext );
- for ( ::std::list< SettingsGroup >::const_iterator settings = aSettings.begin();
- settings != aSettings.end();
- ++settings
- )
+ for (auto const& settings : aSettings)
{
- if ( !settings->aSettings.getLength() )
+ if ( !settings.aSettings.getLength() )
continue;
- const OUString& sSettingsName( GetXMLToken( settings->eGroupName ) );
+ const OUString& sSettingsName( GetXMLToken( settings.eGroupName ) );
OUString sQName = GetNamespaceMap().GetQNameByKey( XML_NAMESPACE_OOO, sSettingsName );
- aSettingsExportHelper.exportAllSettings( settings->aSettings, sQName );
+ aSettingsExportHelper.exportAllSettings( settings.aSettings, sQName );
}
}
}
@@ -1824,7 +1821,7 @@ void SvXMLExport::GetConfigurationSettings(uno::Sequence<beans::PropertyValue>&)
{
}
-sal_Int32 SvXMLExport::GetDocumentSpecificSettings( ::std::list< SettingsGroup >& )
+sal_Int32 SvXMLExport::GetDocumentSpecificSettings( ::std::vector< SettingsGroup >& )
{
return 0;
}