summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 11:33:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-07 09:15:32 +0100
commitc4257244afa0490c18a43ec2039a11f1c48935cc (patch)
treec60405e20142b1fc894dabac9f57ec1007e769de /include
parentafeda72187e69d7bc8d7e37d98cce7601e2ffde8 (diff)
loplugin:useuniqueptr in SdrText
Change-Id: I23cc319707132c28725acdb8be0bea275025b9e5 Reviewed-on: https://gerrit.libreoffice.org/49332 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdtext.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/svdtext.hxx b/include/svx/svdtext.hxx
index f16e16edd4e1..c5c8831841c0 100644
--- a/include/svx/svdtext.hxx
+++ b/include/svx/svdtext.hxx
@@ -23,6 +23,7 @@
#include <sal/types.h>
#include <svx/svxdllapi.h>
#include <tools/weakbase.hxx>
+#include <memory>
class OutlinerParaObject;
@@ -73,7 +74,7 @@ protected:
virtual SfxStyleSheet* GetStyleSheet() const;
private:
- OutlinerParaObject* mpOutlinerParaObject;
+ std::unique_ptr<OutlinerParaObject> mpOutlinerParaObject;
SdrTextObj& mrObject;
SdrModel* mpModel;
bool mbPortionInfoChecked;