From e7d2ebe2fdb05ccdc742cc7c3d910880ba73ceef Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 6 Feb 2018 14:56:30 +0200 Subject: loplugin:useuniqueptr in SvxLineStyleToolBoxControl Change-Id: I83e1536a1d45fffbf4fc5ddb611e382568ebf26c Reviewed-on: https://gerrit.libreoffice.org/49934 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/linectrl.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include/svx/linectrl.hxx') 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 #include #include +#include class XLineStyleItem; class XLineDashItem; @@ -38,8 +39,8 @@ class SvxMetricField; class SVX_DLLPUBLIC SvxLineStyleToolBoxControl : public SfxToolBoxControl { private: - XLineStyleItem* pStyleItem; - XLineDashItem* pDashItem; + std::unique_ptr pStyleItem; + std::unique_ptr pDashItem; bool bUpdate; -- cgit