summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-03 14:11:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-04 12:32:06 +0100
commitb739bdaba8064ae8b428cfa1c7c6010d662539a3 (patch)
tree3f01788dbeccd2a3490fa8493b393ff20ef8b243 /svx/source/unodraw
parent2219d37896ee4a8662d9dccc06a73302f8ac6c7c (diff)
use visitor in getViewIndependentPrimitive2DContainer
to reduce intermediate temporary data creation Change-Id: I3f13b0e02c1fa374e8d70768ae47c7f6da254462 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126322 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unoshape.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx
index f55c4b179c6e..eed9f89f2116 100644
--- a/svx/source/unodraw/unoshape.cxx
+++ b/svx/source/unodraw/unoshape.cxx
@@ -709,8 +709,8 @@ uno::Any SvxShape::GetBitmap( bool bMetaFile /* = false */ ) const
}
else
{
- drawinglayer::primitive2d::Primitive2DContainer xPrimitives(
- GetSdrObject()->GetViewContact().getViewIndependentPrimitive2DContainer());
+ drawinglayer::primitive2d::Primitive2DContainer xPrimitives;
+ GetSdrObject()->GetViewContact().getViewIndependentPrimitive2DContainer(xPrimitives);
if(!xPrimitives.empty())
{