summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 10:38:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-06 12:28:27 +0100
commite1f479af4ddde90f9e80b5079ac759cb9f7743a1 (patch)
tree303f50c03182c029a62d123b06a9d6357f180509 /include/svx
parent7bf0b997366aed67ae1b0cb467113a7be456a765 (diff)
loplugin:useuniqueptr in SdrTextObj
Change-Id: I48f52056dcf17a568266be49f7422fa05be974db Reviewed-on: https://gerrit.libreoffice.org/49274 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/svdotext.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx
index ad18a2512e0b..4f862638ce8b 100644
--- a/include/svx/svdotext.hxx
+++ b/include/svx/svdotext.hxx
@@ -28,11 +28,12 @@
#include <svl/style.hxx>
#include <svx/xtextit0.hxx>
#include <svx/svdtext.hxx>
-#include <vector>
#include <svx/svxdllapi.h>
#include <drawinglayer/primitive2d/baseprimitive2d.hxx>
#include <svx/svdpagv.hxx>
#include <rtl/ref.hxx>
+#include <memory>
+#include <vector>
// forward declarations
@@ -185,7 +186,7 @@ protected:
GeoStat aGeo;
// this is the active text
- SdrText* mpText;
+ std::unique_ptr<SdrText> mpText;
// This contains the dimensions of the text
Size aTextSize;