diff options
-rw-r--r-- | formula/source/ui/dlg/formula.cxx | 21 | ||||
-rw-r--r-- | include/formula/formula.hxx | 1 |
2 files changed, 15 insertions, 7 deletions
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx index a857c60388f2..095be583ab81 100644 --- a/formula/source/ui/dlg/formula.cxx +++ b/formula/source/ui/dlg/formula.cxx @@ -1643,21 +1643,28 @@ void FormulaDlg_Impl::SetEdSelection() } // if( pEd ) } -FormulaModalDialog::FormulaModalDialog( vcl::Window* pParent - , bool _bSupportFunctionResult - , bool _bSupportResult - , bool _bSupportMatrix - , IFunctionManager* _pFunctionMgr - , IControlReferenceHandler* _pDlg ) +FormulaModalDialog::FormulaModalDialog( vcl::Window* pParent + , bool _bSupportFunctionResult + , bool _bSupportResult + , bool _bSupportMatrix + , IFunctionManager* _pFunctionMgr + , IControlReferenceHandler* _pDlg ) : ModalDialog(pParent, "FormulaDialog", "formula/ui/formuladialog.ui") , m_pImpl(new FormulaDlg_Impl(this,_bSupportFunctionResult, - _bSupportResult, _bSupportMatrix, this, _pFunctionMgr, _pDlg)) + _bSupportResult, _bSupportMatrix, + this, _pFunctionMgr, _pDlg)) { SetText(m_pImpl->aTitle1); } FormulaModalDialog::~FormulaModalDialog() {} +void FormulaModalDialog::dispose() +{ + m_pImpl.reset(); + ModalDialog::dispose(); +} + void FormulaModalDialog::Update(const OUString& _sExp) { m_pImpl->Update(_sExp); diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx index 1426404c038b..07720d4622ac 100644 --- a/include/formula/formula.hxx +++ b/include/formula/formula.hxx @@ -57,6 +57,7 @@ public: ,IFunctionManager* _pFunctionMgr ,IControlReferenceHandler* _pDlg = NULL ); virtual ~FormulaModalDialog(); + virtual void dispose() SAL_OVERRIDE; private: ::std::unique_ptr<FormulaDlg_Impl> m_pImpl; |