From 8c55875546aed040609858319707e2b91426fbe0 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sun, 20 Dec 2015 14:17:19 -0500 Subject: Use std::unique_ptr for the SdrPageProperties member of SdrPage. Change-Id: I37d95bd91c5bee1028eceda24e84b17162d0d2b1 Reviewed-on: https://gerrit.libreoffice.org/20844 Tested-by: Jenkins Reviewed-by: Kohei Yoshida --- include/svx/svdpage.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/svx/svdpage.hxx') 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 mpLayerAdmin; - SdrPageProperties* mpSdrPageProperties; + std::unique_ptr 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: -- cgit v1.2.3