summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-05-02 10:29:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-05-03 08:22:21 +0200
commitfef6c6cf67eab1b02a7761cedf6355e33804f6e2 (patch)
tree30313b34ada80b6efbbe3c3ee85062759ebf8629 /include
parent2b2223730b680a006b3380d3d44d59548b7bce65 (diff)
loplugin:useuniqueptr in SdrPaintView
Change-Id: I10c9db25dfb0cce7d0815cdc8aff290b3d0c0026 Reviewed-on: https://gerrit.libreoffice.org/53755 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/svdpntv.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svx/svdpntv.hxx b/include/svx/svdpntv.hxx
index 2405ad9ca4b5..dc20ac774300 100644
--- a/include/svx/svdpntv.hxx
+++ b/include/svx/svdpntv.hxx
@@ -34,6 +34,7 @@
#include <svtools/optionsdrawinglayer.hxx>
#include <unotools/options.hxx>
#include <vcl/idle.hxx>
+#include <memory>
// Pre defines
@@ -133,7 +134,7 @@ private:
// the SdrModel this view was created with, unchanged during lifetime
SdrModel& mrSdrModelFromSdrView;
- SdrPageView* mpPageView;
+ std::unique_ptr<SdrPageView> mpPageView;
protected:
SdrModel* mpModel;
#ifdef DBG_UTIL
@@ -313,7 +314,7 @@ public:
virtual void HideSdrPage();
// Iterate over all registered PageViews
- SdrPageView* GetSdrPageView() const { return mpPageView; }
+ SdrPageView* GetSdrPageView() const { return mpPageView.get(); }
// A SdrView can be displayed on multiple Windows at the same time
virtual void AddWindowToPaintView(OutputDevice* pNewWin, vcl::Window* pWindow);