summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-05 07:49:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-05 07:49:11 +0100
commit4882664e39718109e2ae80348da8b914eb8b2ae6 (patch)
treeb9e136410f32669aeb8ec4f93848983566bc9185
parent06302bb3d1969c4b8a204b6fdc9b15d052861134 (diff)
loplugin:vclwidgets
Change-Id: I3e5d88bdc2ecae6164c75da8ddf1b8cfe0ed325f
-rw-r--r--cui/source/inc/autocdlg.hxx4
-rw-r--r--cui/source/tabpages/autocdlg.cxx10
2 files changed, 14 insertions, 0 deletions
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<AutoCorrEdit&,bool>& 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<SvTabListBox>& rTable, sal_Int32 nCol)
{
m_xReplaceTLB = rTable;