summaryrefslogtreecommitdiff
path: root/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
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/sdr/contact/viewcontactofsdrpathobj.cxx
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/sdr/contact/viewcontactofsdrpathobj.cxx')
-rw-r--r--svx/source/sdr/contact/viewcontactofsdrpathobj.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
index b326fd8af787..d0635f005716 100644
--- a/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
+++ b/svx/source/sdr/contact/viewcontactofsdrpathobj.cxx
@@ -66,7 +66,7 @@ namespace sdr::contact
return nPolyCount;
}
- drawinglayer::primitive2d::Primitive2DContainer ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence() const
+ void ViewContactOfSdrPathObj::createViewIndependentPrimitive2DSequence(drawinglayer::primitive2d::Primitive2DDecompositionVisitor& rVisitor) const
{
const SfxItemSet& rItemSet = GetPathObj().GetMergedItemSet();
const drawinglayer::attribute::SdrLineFillEffectsTextAttribute aAttribute(
@@ -198,7 +198,7 @@ namespace sdr::contact
aUnitPolyPolygon,
aUnitDefinitionPolyPolygon));
- return drawinglayer::primitive2d::Primitive2DContainer { xReference };
+ rVisitor.visit(xReference);
}
} // end of namespace