diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-01-03 15:04:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-01-03 20:27:46 +0100 |
commit | e08a62124c1f135807f210d37b7c876e5392c5f0 (patch) | |
tree | 82d990a13cfdd93f747ce4acf402df5bc93ff7d5 | |
parent | 92296fa4f2c976680c7b3496c33191dbbcac9b39 (diff) |
cid#1401474 Uncaught exception
Change-Id: I983b0106da9e41cd923603aa8bba685f61963abf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/86184
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | extensions/source/propctrlr/browserpage.cxx | 2 | ||||
-rw-r--r-- | extensions/source/propctrlr/browserpage.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/browserpage.cxx b/extensions/source/propctrlr/browserpage.cxx index 183743ee0e04..edb6b08909af 100644 --- a/extensions/source/propctrlr/browserpage.cxx +++ b/extensions/source/propctrlr/browserpage.cxx @@ -26,7 +26,7 @@ namespace pcr : m_pParent(pParent) , m_xBuilder(Application::CreateBuilder(pParent, "modules/spropctrlr/ui/browserpage.ui")) , m_xContainer(m_xBuilder->weld_container("BrowserPage")) - , m_xListBox(std::make_unique<OBrowserListBox>(*m_xBuilder, pInitialControlContainer)) + , m_xListBox(new OBrowserListBox(*m_xBuilder, pInitialControlContainer)) { } diff --git a/extensions/source/propctrlr/browserpage.hxx b/extensions/source/propctrlr/browserpage.hxx index dd8c44f2e583..cb13f1383050 100644 --- a/extensions/source/propctrlr/browserpage.hxx +++ b/extensions/source/propctrlr/browserpage.hxx @@ -20,6 +20,7 @@ #ifndef INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_BROWSERPAGE_HXX #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_BROWSERPAGE_HXX +#include <o3tl/deleter.hxx> #include <vcl/builderpage.hxx> #include "browserlistbox.hxx" @@ -31,7 +32,7 @@ namespace pcr weld::Container* m_pParent; std::unique_ptr<weld::Builder> m_xBuilder; std::unique_ptr<weld::Container> m_xContainer; - std::unique_ptr<OBrowserListBox> m_xListBox; + std::unique_ptr<OBrowserListBox, o3tl::default_delete<OBrowserListBox>> m_xListBox; public: // TODO inherit from BuilderPage |