summaryrefslogtreecommitdiff
path: root/sd/source/ui/unoidl/SdUnoSlideView.cxx
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2021-10-29 10:02:01 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-30 23:13:41 +0200
commit94f34c57be79187c7108eea845e1303ddc6319e5 (patch)
treeddf02496de0ce17308246d0a54c8678fa5e76e9e /sd/source/ui/unoidl/SdUnoSlideView.cxx
parent2afbef0037f022a59ed1198f1f84e454d070df92 (diff)
Prepare for removal of non-const operator[] from Sequence in sd
Change-Id: I82dc012188f846161beeb54901c2f5d298e5c3b7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124385 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sd/source/ui/unoidl/SdUnoSlideView.cxx')
-rw-r--r--sd/source/ui/unoidl/SdUnoSlideView.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/unoidl/SdUnoSlideView.cxx b/sd/source/ui/unoidl/SdUnoSlideView.cxx
index 1055d51b1cc3..c30962ed766b 100644
--- a/sd/source/ui/unoidl/SdUnoSlideView.cxx
+++ b/sd/source/ui/unoidl/SdUnoSlideView.cxx
@@ -90,11 +90,12 @@ Any SAL_CALL SdUnoSlideView::getSelection()
mrSlideSorter.GetController().GetPageSelector().GetSelectedPageCount());
Sequence<Reference<XInterface> > aPages(nSelectedPageCount);
+ auto aPagesRange = asNonConstRange(aPages);
int nIndex = 0;
while (aSelectedPages.HasMoreElements() && nIndex<nSelectedPageCount)
{
slidesorter::model::SharedPageDescriptor pDescriptor (aSelectedPages.GetNextElement());
- aPages[nIndex++] = pDescriptor->GetPage()->getUnoPage();
+ aPagesRange[nIndex++] = pDescriptor->GetPage()->getUnoPage();
}
aResult <<= aPages;