diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-26 01:37:50 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:45:12 +0000 |
commit | 61a70fb5094ca6edfef9500f358c517e6674cb0c (patch) | |
tree | 29b9ad43c9e93c1a95f4535576670a47c686a465 | |
parent | 9a2bbaad2667c025744792948961606fbcc5029c (diff) |
tdf#89329: use unique_ptr for pImpl in hyperlabel
Change-Id: I697eb48591c53ba27c99fc86baa4b8b33e7c9fd1
Reviewed-on: https://gerrit.libreoffice.org/25474
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | include/svtools/hyperlabel.hxx | 4 | ||||
-rw-r--r-- | svtools/source/control/hyperlabel.cxx | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/include/svtools/hyperlabel.hxx b/include/svtools/hyperlabel.hxx index b70e706f73a8..6e027c792c3e 100644 --- a/include/svtools/hyperlabel.hxx +++ b/include/svtools/hyperlabel.hxx @@ -29,14 +29,12 @@ namespace svt { - - class HyperLabelImpl; class HyperLabel : public FixedText { protected: - HyperLabelImpl* m_pImpl; + std::unique_ptr<HyperLabelImpl> m_pImpl; Link<HyperLabel*,void> maClickHdl; virtual void MouseMove( const MouseEvent& rMEvt ) override; diff --git a/svtools/source/control/hyperlabel.cxx b/svtools/source/control/hyperlabel.cxx index 4530f99a53d2..9fb08798d6bc 100644 --- a/svtools/source/control/hyperlabel.cxx +++ b/svtools/source/control/hyperlabel.cxx @@ -159,7 +159,7 @@ namespace svt void HyperLabel::dispose() { - delete m_pImpl; + m_pImpl.reset(); FixedText::dispose(); } |