summaryrefslogtreecommitdiff
path: root/include/svx/svdpage.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2015-12-20 14:17:19 -0500
committerKohei Yoshida <libreoffice@kohei.us>2015-12-21 00:24:34 +0000
commit8c55875546aed040609858319707e2b91426fbe0 (patch)
tree63300400a76d5ad790aece1d54a08fb0f562384a /include/svx/svdpage.hxx
parentc6b11cf681f8e8d131031ea7e5d19c4b6473503a (diff)
Use std::unique_ptr for the SdrPageProperties member of SdrPage.
Change-Id: I37d95bd91c5bee1028eceda24e84b17162d0d2b1 Reviewed-on: https://gerrit.libreoffice.org/20844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us>
Diffstat (limited to 'include/svx/svdpage.hxx')
-rw-r--r--include/svx/svdpage.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/svx/svdpage.hxx b/include/svx/svdpage.hxx
index 7e1d15f92587..6b7d4d29aba4 100644
--- a/include/svx/svdpage.hxx
+++ b/include/svx/svdpage.hxx
@@ -414,12 +414,12 @@ public:
private:
std::unique_ptr<SdrLayerAdmin> mpLayerAdmin;
- SdrPageProperties* mpSdrPageProperties;
+ std::unique_ptr<SdrPageProperties> mpSdrPageProperties;
css::uno::Reference< css::uno::XInterface > mxUnoPage;
public:
- SdrPageProperties& getSdrPageProperties() { return *mpSdrPageProperties; }
- const SdrPageProperties& getSdrPageProperties() const { return *mpSdrPageProperties; }
+ SdrPageProperties& getSdrPageProperties();
+ const SdrPageProperties& getSdrPageProperties() const;
const SdrPageProperties* getCorrectSdrPageProperties() const;
protected: