summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-30 10:50:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-05 07:56:06 +0100
commit9b0ee7d25fd405153fa783cbc0b1658368a22355 (patch)
tree36583bcf9f93c98c1546648bc9745f259c3e14cf /include
parentea385c1a9f3a9faaa0f3e2408082bfe914b2518d (diff)
loplugin:useuniqueptr in MasterPageDescriptor
Change-Id: I54d46aeec5f74ccf088ea33d03fd1d8a2009d43f Reviewed-on: https://gerrit.libreoffice.org/49211 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/svx/sdrmasterpagedescriptor.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/sdrmasterpagedescriptor.hxx b/include/svx/sdrmasterpagedescriptor.hxx
index f719bca5322e..a072ed6ba5aa 100644
--- a/include/svx/sdrmasterpagedescriptor.hxx
+++ b/include/svx/sdrmasterpagedescriptor.hxx
@@ -22,6 +22,7 @@
#include <svx/sdrpageuser.hxx>
#include <svx/svdsob.hxx>
+#include <memory>
class SdrObject;
class SfxItemSet;
@@ -45,7 +46,7 @@ namespace sdr
SdrLayerIDSet maVisibleLayers;
// ViewContact part
- sdr::contact::ViewContact* mpViewContact;
+ mutable std::unique_ptr<sdr::contact::ViewContact> mpViewContact;
void operator=(const MasterPageDescriptor& rCandidate) = delete;