summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-06 14:56:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-19 07:12:19 +0100
commite7d2ebe2fdb05ccdc742cc7c3d910880ba73ceef (patch)
treee28299fcbceea1c5255675754cd27d72ebc94910 /include
parent6e5d8bb2d60c2e44aa1d2bf7810bff09b9ceabb5 (diff)
loplugin:useuniqueptr in SvxLineStyleToolBoxControl
Change-Id: I83e1536a1d45fffbf4fc5ddb611e382568ebf26c Reviewed-on: https://gerrit.libreoffice.org/49934 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/linectrl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/linectrl.hxx b/include/svx/linectrl.hxx
index 2c476118d446..a2b1a484e18a 100644
--- a/include/svx/linectrl.hxx
+++ b/include/svx/linectrl.hxx
@@ -25,6 +25,7 @@
#include <sfx2/tbxctrl.hxx>
#include <svx/svxdllapi.h>
#include <svx/xtable.hxx>
+#include <memory>
class XLineStyleItem;
class XLineDashItem;
@@ -38,8 +39,8 @@ class SvxMetricField;
class SVX_DLLPUBLIC SvxLineStyleToolBoxControl : public SfxToolBoxControl
{
private:
- XLineStyleItem* pStyleItem;
- XLineDashItem* pDashItem;
+ std::unique_ptr<XLineStyleItem> pStyleItem;
+ std::unique_ptr<XLineDashItem> pDashItem;
bool bUpdate;