summaryrefslogtreecommitdiff
path: root/xmloff/source/text/txtparae.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/text/txtparae.cxx')
-rw-r--r--xmloff/source/text/txtparae.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 5a9ebfcb3dfd..d7bf4e5f433f 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -461,7 +461,7 @@ void FieldParamExporter::Export()
const Type aBoolType = cppu::UnoType<sal_Bool>::get();
const Type aSeqType = cppu::UnoType<Sequence<OUString>>::get();
const Type aIntType = ::cppu::UnoType<sal_Int32>::get();
- Sequence<OUString> vParameters(m_xFieldParams->getElementNames());
+ const Sequence<OUString> vParameters(m_xFieldParams->getElementNames());
for(const auto & rParameter : vParameters)
{
const Any aValue = m_xFieldParams->getByName(rParameter);
@@ -507,7 +507,7 @@ void FieldParamExporter::Export()
{
Sequence<OUString> vValue;
aValue >>= vValue;
- for(const OUString & i : vValue)
+ for(const OUString & i : std::as_const(vValue))
{
ExportParameter(rParameter, i);
}