[Libreoffice-commits] core.git: sc/source
Stephan Bergmann
sbergman at redhat.com
Sun Nov 8 14:00:00 PST 2015
sc/source/ui/StatisticsDialogs/RegressionDialog.cxx | 12 +++++++++++-
sc/source/ui/inc/RegressionDialog.hxx | 1 +
2 files changed, 12 insertions(+), 1 deletion(-)
New commits:
commit 8d95cf54781e30a7adc0b11160bb17239c4a3d80
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Sun Nov 8 22:59:33 2015 +0100
loplugin:vclwidgets
Change-Id: I7583a76e4d1c98c02bcbf6367a1bf7be815b1461
diff --git a/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx b/sc/source/ui/StatisticsDialogs/RegressionDialog.cxx
index b6a5b6d..ad092ee 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 a4c7089..cba4506 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;
};
More information about the Libreoffice-commits
mailing list