diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-09 16:32:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-09 21:34:59 +0200 |
commit | 72ebbea09644568837853198dd83aae1ab33036c (patch) | |
tree | 5dc8dbc1343bc44245973329ef6a6e99580657e6 /starmath | |
parent | 898a6881ea8fe6bc05f4ef68554d594bae42bf3f (diff) |
cid#1401328 silence Uncaught exception
Change-Id: I7cd29462586b1dfe6fb7268ec3225317c1d2d782
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115268
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/inc/view.hxx | 2 | ||||
-rw-r--r-- | starmath/source/view.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index 320a3b065863..3f77dd76c29c 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -183,7 +183,7 @@ public: class SmCmdBoxWindow : public SfxDockingWindow { - std::unique_ptr<SmEditWindow> m_xEdit; + std::unique_ptr<SmEditWindow, o3tl::default_delete<SmEditWindow>> m_xEdit; SmEditController aController; bool bExiting; diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx index 59ab4bcfc3b8..b6d832fb1130 100644 --- a/starmath/source/view.cxx +++ b/starmath/source/view.cxx @@ -811,7 +811,7 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SmCmdBoxWindow::SmCmdBoxWindow(SfxBindings *pBindings_, SfxChildWindow *pChildWindow, vcl::Window *pParent) : SfxDockingWindow(pBindings_, pChildWindow, pParent, "EditWindow", "modules/smath/ui/editwindow.ui") - , m_xEdit(std::make_unique<SmEditWindow>(*this, *m_xBuilder)) + , m_xEdit(new SmEditWindow(*this, *m_xBuilder)) , aController(*m_xEdit, SID_TEXT, *pBindings_) , bExiting(false) { |