summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2016-05-26 01:44:07 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-26 07:42:43 +0000
commitbb694dfef762327a5446338aa1a1ad23ed8970ed (patch)
treed51924b632305259b1c67a85cea8330bd5b5d4b5
parent2ef6a52edddcca851c8b4555fd45e8f88d23a7bb (diff)
tdf#89329: use unique_ptr for pImpl in svtabbx
Change-Id: I40a826f6430532769590e6c34d8a98997127fc2e Reviewed-on: https://gerrit.libreoffice.org/25477 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--include/svtools/svtabbx.hxx2
-rw-r--r--svtools/source/contnr/svtabbx.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/svtools/svtabbx.hxx b/include/svtools/svtabbx.hxx
index bf86082484df..6a0b866e4d65 100644
--- a/include/svtools/svtabbx.hxx
+++ b/include/svtools/svtabbx.hxx
@@ -128,7 +128,7 @@ private:
typedef ::std::vector< css::uno::Reference< css::accessibility::XAccessible > > AccessibleChildren;
bool m_bFirstPaint;
- ::svt::SvHeaderTabListBoxImpl* m_pImpl;
+ std::unique_ptr<::svt::SvHeaderTabListBoxImpl> m_pImpl;
::svt::IAccessibleTabListBox* m_pAccessible;
AccessibleChildren m_aAccessibleChildren;
diff --git a/svtools/source/contnr/svtabbx.cxx b/svtools/source/contnr/svtabbx.cxx
index f3a9d92b0553..f0345af5143a 100644
--- a/svtools/source/contnr/svtabbx.cxx
+++ b/svtools/source/contnr/svtabbx.cxx
@@ -519,7 +519,7 @@ SvHeaderTabListBox::~SvHeaderTabListBox()
void SvHeaderTabListBox::dispose()
{
- delete m_pImpl;
+ m_pImpl.reset();
SvTabListBox::dispose();
}