Kaydet (Commit) 61a70fb5 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in hyperlabel

Change-Id: I697eb48591c53ba27c99fc86baa4b8b33e7c9fd1
Reviewed-on: https://gerrit.libreoffice.org/25474Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 9a2bbaad
...@@ -29,14 +29,12 @@ ...@@ -29,14 +29,12 @@
namespace svt namespace svt
{ {
class HyperLabelImpl; class HyperLabelImpl;
class HyperLabel : public FixedText class HyperLabel : public FixedText
{ {
protected: protected:
HyperLabelImpl* m_pImpl; std::unique_ptr<HyperLabelImpl> m_pImpl;
Link<HyperLabel*,void> maClickHdl; Link<HyperLabel*,void> maClickHdl;
virtual void MouseMove( const MouseEvent& rMEvt ) override; virtual void MouseMove( const MouseEvent& rMEvt ) override;
......
...@@ -159,7 +159,7 @@ namespace svt ...@@ -159,7 +159,7 @@ namespace svt
void HyperLabel::dispose() void HyperLabel::dispose()
{ {
delete m_pImpl; m_pImpl.reset();
FixedText::dispose(); FixedText::dispose();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment