summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-08-22 16:52:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-08-22 18:54:30 +0200
commit30067dafa988d4c6dd970c817eca283ac8946728 (patch)
treeb9971dd85db303ff45b5a74f91682944ce9b31bf /include/svx
parent4c5e264df432f4e6836535cbac7231ab579af424 (diff)
no need to use shared_ptr in SdrAllFillAttributesHelper
these types are already COW types Change-Id: I7e4375ac50b8d887869123eeb99d3eaef0d28169 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120851 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/sdr/attribute/sdrallfillattributeshelper.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx b/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx
index c8c22af9b71c..c9bb786a8091 100644
--- a/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx
+++ b/include/svx/sdr/attribute/sdrallfillattributeshelper.hxx
@@ -24,7 +24,7 @@
#include <drawinglayer/attribute/sdrfillattribute.hxx>
#include <drawinglayer/primitive2d/Primitive2DContainer.hxx>
#include <svl/itemset.hxx>
-#include <memory>
+#include <optional>
//////////////////////////////////////////////////////////////////////////////
@@ -37,9 +37,9 @@ namespace drawinglayer::attribute
private:
basegfx::B2DRange maLastPaintRange;
basegfx::B2DRange maLastDefineRange;
- std::shared_ptr< drawinglayer::attribute::SdrFillAttribute > maFillAttribute;
- std::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute;
- drawinglayer::primitive2d::Primitive2DContainer maPrimitives;
+ std::optional<drawinglayer::attribute::SdrFillAttribute> maFillAttribute;
+ std::optional<drawinglayer::attribute::FillGradientAttribute> maFillGradientAttribute;
+ drawinglayer::primitive2d::Primitive2DContainer maPrimitives;
void createPrimitive2DSequence(
const basegfx::B2DRange& rPaintRange,