diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-15 20:26:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-16 08:11:34 +0200 |
commit | 50679d449fa71bebdc3cba1d30c6c81ac846990c (patch) | |
tree | f903dc5160a9953cd9211efe44261ba7cd77b520 /xmloff/source/forms | |
parent | a0073744aac89648e89506b79e227b17dacf58d0 (diff) |
loplugin:sequenceloop in xmloff
Change-Id: I1fde11da5f6e97255a9140f11c298d6d525f7230
Reviewed-on: https://gerrit.libreoffice.org/77543
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/forms')
-rw-r--r-- | xmloff/source/forms/elementexport.cxx | 4 | ||||
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/forms/elementexport.cxx b/xmloff/source/forms/elementexport.cxx index 9f92db511cd9..13ebf89709c5 100644 --- a/xmloff/source/forms/elementexport.cxx +++ b/xmloff/source/forms/elementexport.cxx @@ -400,7 +400,7 @@ namespace xmloff Sequence< OUString > aListItems; m_xProps->getPropertyValue(PROPERTY_STRING_ITEM_LIST) >>= aListItems; // loop through it and write the sub elements - for (const auto& rListItem : aListItems) + for (const auto& rListItem : std::as_const(aListItems)) { m_rContext.getGlobalContext().ClearAttrList(); AddAttribute( @@ -1260,7 +1260,7 @@ namespace xmloff DBG_CHECK_PROPERTY(_rPropertyName, Sequence< sal_Int16 >); m_xProps->getPropertyValue(_rPropertyName) >>= aValueSequence; - for (const auto& rValue : aValueSequence) + for (const auto& rValue : std::as_const(aValueSequence)) _rOut.insert(rValue); } diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 7c9340657ad7..f83802638968 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -223,7 +223,7 @@ namespace xmloff void OPropertyExport::examinePersistence() { m_aRemainingProps.clear(); - Sequence< Property > aProperties = m_xPropertyInfo->getProperties(); + const Sequence< Property > aProperties = m_xPropertyInfo->getProperties(); for (const auto& rProp : aProperties) { // no transient props |