From e2c811e6f9c0b2de47153a70a783f4d808eab3ab Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 Jan 2023 10:11:09 +0200 Subject: tdf#150534 reduce allocation in SdrFrameBorderPrimitive2D Change-Id: Ib55ce7882e87823cca95e00cb5ae990213d1e766 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146339 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx b/include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx index 40638aa9d05b..93ebdcfde7f2 100644 --- a/include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx +++ b/include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx @@ -90,7 +90,7 @@ namespace drawinglayer::primitive2d class SVXCORE_DLLPUBLIC SdrFrameBorderPrimitive2D final : public BufferedDecompositionPrimitive2D { private: - std::shared_ptr maFrameBorders; + SdrFrameBorderDataVector maFrameBorders; double mfMinimalNonZeroBorderWidth; double mfMinimalNonZeroBorderWidthUsedForDecompose; bool mbForceToSingleDiscreteUnit; @@ -102,7 +102,7 @@ namespace drawinglayer::primitive2d public: SdrFrameBorderPrimitive2D( - std::shared_ptr& rFrameBorders, + SdrFrameBorderDataVector&& rFrameBorders, bool bForceToSingleDiscreteUnit); // compare operator @@ -114,7 +114,7 @@ namespace drawinglayer::primitive2d const geometry::ViewInformation2D& rViewInformation) const override; // data access - const std::shared_ptr& getFrameBorders() const { return maFrameBorders; } + const SdrFrameBorderDataVector& getFrameBorders() const { return maFrameBorders; } bool doForceToSingleDiscreteUnit() const { return mbForceToSingleDiscreteUnit; } // provide unique ID -- cgit