include/svx/sdrpagewindow.hxx | 3 ++- svx/source/svdraw/sdrpagewindow.cxx | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-)
New commits: commit e41d9a9ef9579c1f31dbca988d27f8320146a334 Author: Xisco Fauli <aniste...@gmail.com> Date: Mon Jun 6 00:44:22 2016 +0200 tdf#89329: use unique_ptr for pImpl in sdrpagewindow Change-Id: I001da407617c5dc992986191e78f2cba403ac161 Reviewed-on: https://gerrit.libreoffice.org/25939 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Noel Grandin <noelgran...@gmail.com> diff --git a/include/svx/sdrpagewindow.hxx b/include/svx/sdrpagewindow.hxx index 48845fb..0adc7e4 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 642c867..e6db452 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits