From 19c611f3275de7ffc47e517ad1f3141695fa83fb Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 29 Oct 2021 09:32:59 +0300 Subject: [PATCH] Prepare for removal of non-const operator[] from Sequence in drawinglayer Change-Id: I9cea42e100de6bb05a32edbf9611fbd05d91759e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124359 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- drawinglayer/source/geometry/viewinformation3d.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drawinglayer/source/geometry/viewinformation3d.cxx b/drawinglayer/source/geometry/viewinformation3d.cxx index f0d25bbb07fa..84dd3ccfe79d 100644 --- a/drawinglayer/source/geometry/viewinformation3d.cxx +++ b/drawinglayer/source/geometry/viewinformation3d.cxx @@ -127,6 +127,7 @@ namespace drawinglayer::geometry // prepare extended information for filtering. Maximum size is nCount mxExtendedInformation.realloc(nCount); + auto pExtendedInformation = mxExtendedInformation.getArray(); for(sal_Int32 a(0); a < nCount; a++) { @@ -200,7 +201,7 @@ namespace drawinglayer::geometry else { // extra information; add to filtered information - mxExtendedInformation[nExtendedInsert++] = rProp; + pExtendedInformation[nExtendedInsert++] = rProp; } }