diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-17 19:29:05 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-08-18 11:04:35 +0200 |
commit | c6a71f5daf8c8d1efa8b2273137c92a8ac2650b1 (patch) | |
tree | b9027dab3bfaf73108e75c44f04f13c428de11b2 /basegfx/source | |
parent | af15f1eb6642a8c21b6404dc8405396eaa50c17d (diff) |
Related: ofz#70815 Timeout, don't need this copy
Change-Id: I8d870a6e6743b98da3d0a173cff12748d513d8d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171982
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'basegfx/source')
-rw-r--r-- | basegfx/source/polygon/b2dpolygon.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/basegfx/source/polygon/b2dpolygon.cxx b/basegfx/source/polygon/b2dpolygon.cxx index 90634a377a72..b54570df36ac 100644 --- a/basegfx/source/polygon/b2dpolygon.cxx +++ b/basegfx/source/polygon/b2dpolygon.cxx @@ -683,8 +683,7 @@ public: void append(const basegfx::B2DPoint& rPoint) { mpBufferedData.reset(); // TODO: is this needed? - const auto aCoordinate = rPoint; - maPoints.append(aCoordinate); + maPoints.append(rPoint); if(moControlVector) { @@ -697,8 +696,7 @@ public: { assert(nCount > 0); mpBufferedData.reset(); - auto aCoordinate = rPoint; - maPoints.insert(nIndex, aCoordinate, nCount); + maPoints.insert(nIndex, rPoint, nCount); if(moControlVector) { |