summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-30 10:11:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-30 10:00:33 +0000
commite2c811e6f9c0b2de47153a70a783f4d808eab3ab (patch)
tree9b20060ddb0ed012986e76ee38abaaefaf65b595 /include
parentdb88842170a041267b55dda64f8280a1394202b8 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdr/primitive2d/sdrframeborderprimitive2d.hxx6
1 files changed, 3 insertions, 3 deletions
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<SdrFrameBorderDataVector> maFrameBorders;
+ SdrFrameBorderDataVector maFrameBorders;
double mfMinimalNonZeroBorderWidth;
double mfMinimalNonZeroBorderWidthUsedForDecompose;
bool mbForceToSingleDiscreteUnit;
@@ -102,7 +102,7 @@ namespace drawinglayer::primitive2d
public:
SdrFrameBorderPrimitive2D(
- std::shared_ptr<SdrFrameBorderDataVector>& 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<SdrFrameBorderDataVector>& getFrameBorders() const { return maFrameBorders; }
+ const SdrFrameBorderDataVector& getFrameBorders() const { return maFrameBorders; }
bool doForceToSingleDiscreteUnit() const { return mbForceToSingleDiscreteUnit; }
// provide unique ID