summaryrefslogtreecommitdiff
path: root/sc/source/ui/xmlsource/xmlsourcedlg.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/xmlsource/xmlsourcedlg.cxx')
-rw-r--r--sc/source/ui/xmlsource/xmlsourcedlg.cxx21
1 files changed, 20 insertions, 1 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
index e789276d6a0b..0224565d322c 100644
--- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx
+++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx
@@ -115,9 +115,28 @@ ScXMLSourceDlg::ScXMLSourceDlg(
mpBtnSelectSource->GrabFocus(); // Initial focus is on the select source button.
}
+ScXMLSourceDlg::~ScXMLSourceDlg()
+{
+ disposeOnce();
+}
+
+void ScXMLSourceDlg::dispose()
+{
+ mpBtnSelectSource.clear();
+ mpFtSourceFile.clear();
+ mpMapGrid.clear();
+ mpLbTree.clear();
+ mpRefEdit.clear();
+ mpRefBtn.clear();
+ mpBtnOk.clear();
+ mpBtnCancel.clear();
+ mpActiveEdit.clear();
+ ScAnyRefDlg::dispose();
+}
+
bool ScXMLSourceDlg::IsRefInputMode() const
{
- return mpActiveEdit != NULL && mpActiveEdit->IsEnabled();
+ return mpActiveEdit != nullptr && mpActiveEdit->IsEnabled();
}
void ScXMLSourceDlg::SetReference(const ScRange& rRange, ScDocument* pDoc)