diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-28 09:52:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-05 07:26:20 +0100 |
commit | ed50afb3c06cb7eb0df7a4633bbff2498577e7e9 (patch) | |
tree | c329ddc6ad8126286d34f35e31c6647a20ca7182 /svgio/source | |
parent | 8a9f8d35b000e37f08d391958eca0d51269a23dd (diff) |
loplugin:useuniqueptr in SvgPatternNode
Change-Id: Icf0390d3667c3d55db2266285cacea36e2171e0a
Reviewed-on: https://gerrit.libreoffice.org/50655
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source')
-rw-r--r-- | svgio/source/svgreader/svgpatternnode.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgpatternnode.cxx b/svgio/source/svgreader/svgpatternnode.cxx index 50e2a38b6fe8..758a6022f841 100644 --- a/svgio/source/svgreader/svgpatternnode.cxx +++ b/svgio/source/svgreader/svgpatternnode.cxx @@ -54,8 +54,6 @@ namespace svgio SvgPatternNode::~SvgPatternNode() { - delete mpViewBox; - delete mpaPatternTransform; } const SvgStyleAttributes* SvgPatternNode::getSvgStyleAttributes() const @@ -298,7 +296,7 @@ namespace svgio { if(mpViewBox) { - return mpViewBox; + return mpViewBox.get(); } const_cast< SvgPatternNode* >(this)->tryToFindLink(); @@ -434,7 +432,7 @@ namespace svgio { if(mpaPatternTransform) { - return mpaPatternTransform; + return mpaPatternTransform.get(); } const_cast< SvgPatternNode* >(this)->tryToFindLink(); |