diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-07-31 14:31:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-31 19:16:06 +0200 |
commit | 9ae4f8b5bf70a693ffb60ceac4f9625cf15b1181 (patch) | |
tree | c8b0e773f467325595bcc7d8a40c744ab6768430 /svx | |
parent | ca7dab5d96e73b7b4b045e2460e0b2ee150757db (diff) |
getArray->getConstArray
Change-Id: I951dd4a02c9ead98e7eb13ae2995ba2e1e57b38a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119740
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshap3.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/unodraw/unoshap3.cxx b/svx/source/unodraw/unoshap3.cxx index ad8286f1e97a..6750f3370ef5 100644 --- a/svx/source/unodraw/unoshap3.cxx +++ b/svx/source/unodraw/unoshap3.cxx @@ -651,9 +651,9 @@ static bool PolyPolygonShape3D_to_B3dPolyPolygon( if(nOuterSequenceCount != aSourcePolyPolygon.SequenceY.getLength() || nOuterSequenceCount != aSourcePolyPolygon.SequenceZ.getLength()) return false; - drawing::DoubleSequence* pInnerSequenceX = aSourcePolyPolygon.SequenceX.getArray(); - drawing::DoubleSequence* pInnerSequenceY = aSourcePolyPolygon.SequenceY.getArray(); - drawing::DoubleSequence* pInnerSequenceZ = aSourcePolyPolygon.SequenceZ.getArray(); + const drawing::DoubleSequence* pInnerSequenceX = aSourcePolyPolygon.SequenceX.getConstArray(); + const drawing::DoubleSequence* pInnerSequenceY = aSourcePolyPolygon.SequenceY.getConstArray(); + const drawing::DoubleSequence* pInnerSequenceZ = aSourcePolyPolygon.SequenceZ.getConstArray(); for(sal_Int32 a(0);a<nOuterSequenceCount;a++) { sal_Int32 nInnerSequenceCount = pInnerSequenceX->getLength(); @@ -662,9 +662,9 @@ static bool PolyPolygonShape3D_to_B3dPolyPolygon( return false; } basegfx::B3DPolygon aNewPolygon; - double* pArrayX = pInnerSequenceX->getArray(); - double* pArrayY = pInnerSequenceY->getArray(); - double* pArrayZ = pInnerSequenceZ->getArray(); + const double* pArrayX = pInnerSequenceX->getConstArray(); + const double* pArrayY = pInnerSequenceY->getConstArray(); + const double* pArrayZ = pInnerSequenceZ->getConstArray(); for(sal_Int32 b(0);b<nInnerSequenceCount;b++) { aNewPolygon.append(basegfx::B3DPoint(*pArrayX++,*pArrayY++,*pArrayZ++)); |