summaryrefslogtreecommitdiff
path: root/oox/source/ppt/animationspersist.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 09:52:20 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 19:22:33 +0200
commit3c1085fcdd8814180507d8ea1aa6e75d4f94f14f (patch)
tree7b4ec56497648b58bdd3a816a96365d13edb98e9 /oox/source/ppt/animationspersist.cxx
parentd53340b2253537104abe6f95c8c63cc74487c3ec (diff)
Prepare for removal of non-const operator[] from Sequence in oox
Change-Id: Iee1e16c516547e8f23631b33c928ac6637050f68 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124376 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'oox/source/ppt/animationspersist.cxx')
-rw-r--r--oox/source/ppt/animationspersist.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/oox/source/ppt/animationspersist.cxx b/oox/source/ppt/animationspersist.cxx
index 544b5e4626aa..40655e6863c6 100644
--- a/oox/source/ppt/animationspersist.cxx
+++ b/oox/source/ppt/animationspersist.cxx
@@ -60,13 +60,11 @@ Any addToSequence( const Any& rOldValue, const Any& rNewValue )
{
sal_Int32 nSize = aNewSeq.getLength();
aNewSeq.realloc(nSize+1);
- aNewSeq[nSize] = rNewValue;
+ aNewSeq.getArray()[nSize] = rNewValue;
}
else
{
- aNewSeq.realloc(2);
- aNewSeq[0] = rOldValue;
- aNewSeq[1] = rNewValue;
+ aNewSeq = { rOldValue, rNewValue };
}
return makeAny( aNewSeq );
}