summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-08 22:59:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-08 22:59:33 +0100
commit8d95cf54781e30a7adc0b11160bb17239c4a3d80 (patch)
treef7aa8a09f0fb38706bb8e1786b8698de76f2cd08 /sc
parent6115acca2859432f8dff3c707bc42fd54234e91d (diff)
loplugin:vclwidgets
Change-Id: I7583a76e4d1c98c02bcbf6367a1bf7be815b1461
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/StatisticsDialogs/RegressionDialog.cxx12
-rw-r--r--sc/source/ui/inc/RegressionDialog.hxx1
2 files changed, 12 insertions, 1 deletions
diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
index b6a5b6dfb46b..ad092eeb03d0 100644
--- a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
@@ -85,13 +85,23 @@ ScRegressionDialog::ScRegressionDialog(
}
ScRegressionDialog::~ScRegressionDialog()
-{}
+{
+ disposeOnce();
+}
bool ScRegressionDialog::Close()
{
return DoClose(ScRegressionDialogWrapper::GetChildWindowId());
}
+void ScRegressionDialog::dispose()
+{
+ mpLinearCheckBox.disposeAndClear();
+ mpLogarithmicCheckBox.disposeAndClear();
+ mpPowerCheckBox.disposeAndClear();
+ ScStatisticsTwoVariableDialog::dispose();
+}
+
sal_Int16 ScRegressionDialog::GetUndoNameId()
{
return STR_REGRESSION_UNDO_NAME;
diff --git a/sc/source/ui/inc/RegressionDialog.hxx b/sc/source/ui/inc/RegressionDialog.hxx
index a4c7089382e0..cba4506cd803 100644
--- a/sc/source/ui/inc/RegressionDialog.hxx
+++ b/sc/source/ui/inc/RegressionDialog.hxx
@@ -29,6 +29,7 @@ public:
virtual bool Close() override;
protected:
+ void dispose() override;
virtual sal_Int16 GetUndoNameId() override;
virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
};