summaryrefslogtreecommitdiff
path: root/unotools/source/config/configitem.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/config/configitem.cxx')
-rw-r--r--unotools/source/config/configitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/config/configitem.cxx b/unotools/source/config/configitem.cxx
index ac801fc8df60..fd12fbde6796 100644
--- a/unotools/source/config/configitem.cxx
+++ b/unotools/source/config/configitem.cxx
@@ -281,7 +281,7 @@ void ConfigItem::impl_unpackLocalizedProperties( const Sequence< OUString >
lOutValues.realloc ( nDestinationCounter+nPropertiesSize );
}
- for( const auto& rProperty : lProperties )
+ for( const auto& rProperty : std::as_const(lProperties) )
{
lOutNames [nDestinationCounter] = sNodeName + rProperty.Name;
lOutValues[nDestinationCounter] = rProperty.Value;
@@ -641,7 +641,7 @@ bool ConfigItem::ClearNodeSet(const OUString& rNode)
xCont.set(xHierarchyAccess, UNO_QUERY);
if(!xCont.is())
return false;
- Sequence< OUString > aNames = xCont->getElementNames();
+ const Sequence< OUString > aNames = xCont->getElementNames();
Reference<XChangesBatch> xBatch(xHierarchyAccess, UNO_QUERY);
for(const OUString& rName : aNames)
{