summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-06-28 14:01:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-29 08:41:39 +0200
commit99147c8303016498f4bfcef3d5c1fe126ad43076 (patch)
tree9200058d3b1d510cc8923141369f2eb6dde24b19 /sw/inc
parent95486bac7090d163d19fe8d35521ac0ef4473a93 (diff)
loplugin:useuniqueptr in SwGrfNode
Change-Id: I9f0993f7fbbdaf7552fe0b0c19d3fca691471fa8 Reviewed-on: https://gerrit.libreoffice.org/56626 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/ndgrf.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index e44c72e69309..a5e4e0cc2969 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -37,7 +37,7 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
friend class SwNodes;
GraphicObject maGrfObj;
- GraphicObject *mpReplacementGraphic;
+ std::unique_ptr<GraphicObject> mpReplacementGraphic;
tools::SvRef<sfx2::SvBaseLink> refLink; ///< If graphics only as link then pointer is set.
Size nGrfSize;
bool bInSwapIn :1;