diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-06 12:38:04 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-07 06:57:58 +0000 |
commit | bc6a00bab90f49018ce7fe623f173cc785eeb807 (patch) | |
tree | 7a4649e14c08aa271381a5e1152860c48e5f92c6 | |
parent | 8dc73a2c0801db12b0d03a54c7ec59b12f1276e3 (diff) |
tdf#89329: use unique_ptr for pImpl in xmlsecctrl
Change-Id: I2a4d6b3924aabede4dd77283abc157bd38e12dbe
Reviewed-on: https://gerrit.libreoffice.org/25967
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/svx/xmlsecctrl.hxx | 3 | ||||
-rw-r--r-- | svx/source/stbctrls/xmlsecctrl.cxx | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/include/svx/xmlsecctrl.hxx b/include/svx/xmlsecctrl.hxx index 17e99dbda23e..776b30adb9fe 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 adb35db6167e..6abcfe584536 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 ) |