summaryrefslogtreecommitdiff
path: root/xmloff/source/transform
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:28:28 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-11-01 07:11:36 +0100
commit8cb57be792e6991c38cf5d4434569dc118dd0ed4 (patch)
tree46f394a22466fb7281d9c48f6d7fbed8a1a448a6 /xmloff/source/transform
parent34d0dd41e1e7bb69d6c4f817b39da26bcd33831f (diff)
Prepare for removal of non-const operator[] from Sequence in xmloff
Change-Id: I7ea7964f76f0a5db678510ac3533003726dc49fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124416 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r--xmloff/source/transform/OOo2Oasis.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx
index 2a853c430646..2433d1ed8d54 100644
--- a/xmloff/source/transform/OOo2Oasis.cxx
+++ b/xmloff/source/transform/OOo2Oasis.cxx
@@ -1931,8 +1931,9 @@ void OOo2OasisTransformer::Initialize(
if (xFilter.is())
{
Sequence<Any> aArgs( 1 + rArguments.getLength() );
- aArgs[0] <<= xFilter;
- std::copy(rArguments.begin(), rArguments.end(), std::next(aArgs.getArray()));
+ auto pArgs = aArgs.getArray();
+ pArgs[0] <<= xFilter;
+ std::copy(rArguments.begin(), rArguments.end(), std::next(pArgs));
XMLTransformerBase::initialize( aArgs );
OSL_ENSURE( GetDocHandler() == xFilter,