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) {