cui/source/inc/autocdlg.hxx | 4 ++++ cui/source/tabpages/autocdlg.cxx | 10 ++++++++++ 2 files changed, 14 insertions(+)
New commits: commit 4882664e39718109e2ae80348da8b914eb8b2ae6 Author: Stephan Bergmann <[email protected]> Date: Thu Nov 5 07:49:11 2015 +0100 loplugin:vclwidgets Change-Id: I3e5d88bdc2ecae6164c75da8ddf1b8cfe0ed325f diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 1c4eac6..a874f6a 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<AutoCorrEdit&,bool>& rLink ) { aActionLink = rLink;} diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 4d1b049..e43868e 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<SvTabListBox>& rTable, sal_Int32 nCol) { m_xReplaceTLB = rTable; _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
