From 4882664e39718109e2ae80348da8b914eb8b2ae6 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 5 Nov 2015 07:49:11 +0100 Subject: loplugin:vclwidgets Change-Id: I3e5d88bdc2ecae6164c75da8ddf1b8cfe0ed325f --- cui/source/inc/autocdlg.hxx | 4 ++++ cui/source/tabpages/autocdlg.cxx | 10 ++++++++++ 2 files changed, 14 insertions(+) (limited to 'cui') diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 1c4eac679ea5..a874f6ad431d 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -188,6 +188,8 @@ class AutoCorrEdit : public Edit sal_Int32 m_nCol; bool bSpaces; + void dispose() override; + public: AutoCorrEdit(vcl::Window* pParent, const ResId& rResId) : Edit(pParent, rResId) @@ -203,6 +205,8 @@ public: { } + virtual ~AutoCorrEdit(); + void SetActionHdl( const Link& rLink ) { aActionLink = rLink;} diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 4d1b049b8e32..e43868e20fc8 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -1747,6 +1747,16 @@ IMPL_LINK_TYPED(OfaAutocorrExceptPage, ModifyHdl, Edit&, rEdt, void) VCL_BUILDER_FACTORY(AutoCorrEdit) +void AutoCorrEdit::dispose() +{ + m_xReplaceTLB.disposeAndClear(); + Edit::dispose(); +} + +AutoCorrEdit::~AutoCorrEdit() { + disposeOnce(); +} + void AutoCorrEdit::ConnectColumn(const VclPtr& rTable, sal_Int32 nCol) { m_xReplaceTLB = rTable; -- cgit