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 <sberg...@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; }; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits