[Libreoffice-commits] core.git: starmath/inc starmath/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sun May 9 19:35:37 UTC 2021
starmath/inc/view.hxx | 2 +-
starmath/source/view.cxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 72ebbea09644568837853198dd83aae1ab33036c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun May 9 16:32:55 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun May 9 21:34:59 2021 +0200
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 at redhat.com>
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)
{
More information about the Libreoffice-commits
mailing list