include/svx/xmlsecctrl.hxx         |    3 +--
 svx/source/stbctrls/xmlsecctrl.cxx |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

New commits:
commit bc6a00bab90f49018ce7fe623f173cc785eeb807
Author: Xisco Fauli <aniste...@gmail.com>
Date:   Mon Jun 6 12:38:04 2016 +0200

    tdf#89329: use unique_ptr for pImpl in xmlsecctrl
    
    Change-Id: I2a4d6b3924aabede4dd77283abc157bd38e12dbe
    Reviewed-on: https://gerrit.libreoffice.org/25967
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noelgran...@gmail.com>

diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx
index 17e99db..776b30a 100644
--- a/include/svx/xmlsecctrl.hxx
+++ b/include/svx/xmlsecctrl.hxx
@@ -23,7 +23,6 @@
 #include <sfx2/stbitem.hxx>
 #include <svx/svxdllapi.h>
 
-
 class  SvxSizeItem;
 
 // class SvxPosSizeToolBoxControl ----------------------------------------
@@ -33,7 +32,7 @@ class SVX_DLLPUBLIC XmlSecStatusBarControl : public 
SfxStatusBarControl
 private:
     struct XmlSecStatusBarControl_Impl;
 
-    XmlSecStatusBarControl_Impl*        mpImpl;
+    std::unique_ptr<XmlSecStatusBarControl_Impl>        mpImpl;
 
 public:
     SFX_DECL_STATUSBAR_CONTROL();
diff --git a/svx/source/stbctrls/xmlsecctrl.cxx 
b/svx/source/stbctrls/xmlsecctrl.cxx
index adb35db..6abcfe5 100644
--- a/svx/source/stbctrls/xmlsecctrl.cxx
+++ b/svx/source/stbctrls/xmlsecctrl.cxx
@@ -78,7 +78,6 @@ XmlSecStatusBarControl::XmlSecStatusBarControl( sal_uInt16 
_nSlotId,  sal_uInt16
 
 XmlSecStatusBarControl::~XmlSecStatusBarControl()
 {
-    delete mpImpl;
 }
 
 void XmlSecStatusBarControl::StateChanged( sal_uInt16, SfxItemState eState, 
const SfxPoolItem* pState )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to