[Libreoffice-commits] core.git: include/writerperfect writerperfect/source
Stephan Bergmann
sbergman at redhat.com
Tue May 19 00:41:03 PDT 2015
include/writerperfect/WPFTEncodingDialog.hxx | 2 ++
writerperfect/source/common/WPFTEncodingDialog.cxx | 9 +++++++++
2 files changed, 11 insertions(+)
New commits:
commit df64e7c709fc6d771546554b4026583c55609105
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue May 19 09:40:21 2015 +0200
loplugin:vclwidgets
Change-Id: Id6f15ca62c6ba32ea462e45a51e4cea597dae73d
diff --git a/include/writerperfect/WPFTEncodingDialog.hxx b/include/writerperfect/WPFTEncodingDialog.hxx
index 5288083..ebc5355 100644
--- a/include/writerperfect/WPFTEncodingDialog.hxx
+++ b/include/writerperfect/WPFTEncodingDialog.hxx
@@ -45,6 +45,8 @@ private:
DECL_LINK( DoubleClickHdl, ListBox* );
DECL_LINK(CancelHdl, void*);
+ void dispose() SAL_OVERRIDE;
+
WPFTEncodingDialog(WPFTEncodingDialog const &) SAL_DELETED_FUNCTION;
WPFTEncodingDialog &operator=(WPFTEncodingDialog const &) SAL_DELETED_FUNCTION;
};
diff --git a/writerperfect/source/common/WPFTEncodingDialog.cxx b/writerperfect/source/common/WPFTEncodingDialog.cxx
index fa0be53..f6afb90 100644
--- a/writerperfect/source/common/WPFTEncodingDialog.cxx
+++ b/writerperfect/source/common/WPFTEncodingDialog.cxx
@@ -149,6 +149,7 @@ WPFTEncodingDialog::WPFTEncodingDialog(
WPFTEncodingDialog::~WPFTEncodingDialog()
{
+ disposeOnce();
}
OUString WPFTEncodingDialog::GetEncoding() const
@@ -172,6 +173,14 @@ IMPL_LINK(WPFTEncodingDialog, DoubleClickHdl, ListBox *, pLb)
return 0;
}
+void WPFTEncodingDialog::dispose()
+{
+ m_pLbCharset.disposeAndClear();
+ m_pBtnOk.disposeAndClear();
+ m_pBtnCancel.disposeAndClear();
+ ModalDialog::dispose();
+}
+
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
More information about the Libreoffice-commits
mailing list