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 <mike.kaganski@collabora.com>
This commit is contained in:
Mike Kaganski 2021-10-29 09:32:59 +03:00
parent 0e7ea85a0d
commit 19c611f327

View file

@ -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;
}
}