diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-06 00:44:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:07:58 +0000 |
commit | e41d9a9ef9579c1f31dbca988d27f8320146a334 (patch) | |
tree | 8bc9b247f5a9268a92ecc317c777e4d5e7ddac21 | |
parent | fd393faa68d5979d319900438a789d40630a56ec (diff) |
tdf#89329: use unique_ptr for pImpl in sdrpagewindow
Change-Id: I001da407617c5dc992986191e78f2cba403ac161
Reviewed-on: https://gerrit.libreoffice.org/25939
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/svx/sdrpagewindow.hxx | 3 | ||||
-rw-r--r-- | svx/source/svdraw/sdrpagewindow.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/svx/sdrpagewindow.hxx b/include/svx/sdrpagewindow.hxx index 48845fbc3ed6..0adc7e4f8dfa 100644 --- a/include/svx/sdrpagewindow.hxx +++ b/include/svx/sdrpagewindow.hxx @@ -24,6 +24,7 @@ #include <svx/svdtypes.hxx> #include <svx/svxdllapi.h> #include <rtl/ref.hxx> +#include <memory> #include <com/sun/star/awt/XControlContainer.hpp> @@ -47,7 +48,7 @@ class SVX_DLLPUBLIC SdrPageWindow { struct Impl; - Impl* mpImpl; + std::unique_ptr<Impl> mpImpl; SdrPageWindow( const SdrPageWindow& ) = delete; SdrPageWindow& operator= ( const SdrPageWindow& ) = delete; diff --git a/svx/source/svdraw/sdrpagewindow.cxx b/svx/source/svdraw/sdrpagewindow.cxx index 642c86769d12..e6db45293c4a 100644 --- a/svx/source/svdraw/sdrpagewindow.cxx +++ b/svx/source/svdraw/sdrpagewindow.cxx @@ -149,8 +149,6 @@ SdrPageWindow::~SdrPageWindow() uno::Reference< lang::XComponent > xComponent(mpImpl->mxControlContainer, uno::UNO_QUERY); xComponent->dispose(); } - - delete mpImpl; } SdrPageView& SdrPageWindow::GetPageView() const |