diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-05-19 09:40:21 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-05-19 09:40:38 +0200 |
commit | df64e7c709fc6d771546554b4026583c55609105 (patch) | |
tree | 04dac4d18b94c497f4be9f4443390bf3e170ef15 | |
parent | 023e945ab298bfa6e73eb6b82789fc2fca97f247 (diff) |
loplugin:vclwidgets
Change-Id: Id6f15ca62c6ba32ea462e45a51e4cea597dae73d
-rw-r--r-- | include/writerperfect/WPFTEncodingDialog.hxx | 2 | ||||
-rw-r--r-- | writerperfect/source/common/WPFTEncodingDialog.cxx | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/include/writerperfect/WPFTEncodingDialog.hxx b/include/writerperfect/WPFTEncodingDialog.hxx index 5288083837f5..ebc535530c39 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 fa0be53f11ef..f6afb903fd33 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: */ |