diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 09:48:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-19 05:40:55 +0000 |
commit | 2da34e265db6ca56e43d9b2ab8cee04b1cc4fb29 (patch) | |
tree | e2cbed69babc7f551e0db01a9cd023db809b2204 /svgio/inc/svggradientnode.hxx | |
parent | 9767537e22e178eb23872de138ea70e57c1a6725 (diff) |
new loplugin: useuniqueptr: svgio
Change-Id: I645ac954ac519fe713f4347cdf69780b0f8070e4
Reviewed-on: https://gerrit.libreoffice.org/33252
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/inc/svggradientnode.hxx')
-rw-r--r-- | svgio/inc/svggradientnode.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svgio/inc/svggradientnode.hxx b/svgio/inc/svggradientnode.hxx index cffd427af653..de586f4cb22a 100644 --- a/svgio/inc/svggradientnode.hxx +++ b/svgio/inc/svggradientnode.hxx @@ -23,6 +23,7 @@ #include <svgnode.hxx> #include <svgstyleattributes.hxx> #include <drawinglayer/primitive2d/svggradientprimitive2d.hxx> +#include <memory> namespace svgio { @@ -50,7 +51,7 @@ namespace svgio /// variable scan values, dependent of given XAttributeList SvgUnits maGradientUnits; drawinglayer::primitive2d::SpreadMethod maSpreadMethod; - basegfx::B2DHomMatrix* mpaGradientTransform; + std::unique_ptr<basegfx::B2DHomMatrix> mpaGradientTransform; /// link to another gradient used as style. If maXLink /// is set, the node can be fetched on demand by using |