summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-18 09:47:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-28 10:51:13 +0200
commit26b27c23d42247695d72167be7729e36a473f644 (patch)
treed050d995e530949e18d3878b41a6e8e6df909da6 /include/svx
parentc12bfe9296b5db66ae7326f1dd99b1aa8fb9d2bb (diff)
loplugin:useuniqueptr in SvxDrawPage
Change-Id: Ic0ca03d419cb7124d5076130163de113b29bac9d Reviewed-on: https://gerrit.libreoffice.org/54848 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/unopage.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/unopage.hxx b/include/svx/unopage.hxx
index eefc11c61b2b..1ca099d797eb 100644
--- a/include/svx/unopage.hxx
+++ b/include/svx/unopage.hxx
@@ -40,6 +40,7 @@
#include <comphelper/servicehelper.hxx>
#include <svx/unoprov.hxx>
+#include <memory>
class SdrPage;
class SdrModel;
@@ -70,7 +71,7 @@ class SVX_DLLPUBLIC SvxDrawPage : public ::cppu::WeakAggImplHelper6< css::drawin
SdrPage* mpPage; // TTTT should be reference
SdrModel* mpModel; // TTTT probably not needed -> use from SdrPage
- SdrView* mpView;
+ std::unique_ptr<SdrView> mpView;
void SelectObjectsInView( const css::uno::Reference< css::drawing::XShapes >& aShapes, SdrPageView* pPageView ) throw ();
void SelectObjectInView( const css::uno::Reference< css::drawing::XShape >& xShape, SdrPageView* pPageView ) throw();