From 024a57017384a61b4a61056f1de275f44642bef3 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 15 Sep 2019 20:41:25 +0100 Subject: drop newly unnecessary OGenericUnoDialog::Dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If047d08cea93fdfacff9ee00c69cf57ba08c916c Reviewed-on: https://gerrit.libreoffice.org/78972 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx | 10 ++++++---- chart2/source/controller/inc/dlg_ChartType_UNO.hxx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'chart2/source/controller') diff --git a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx index 1b2aa97aa766..51a3fa06ff3d 100644 --- a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx +++ b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx @@ -37,10 +37,10 @@ ChartTypeUnoDlg::~ChartTypeUnoDlg() { // we do this here cause the base class' call to destroyDialog won't reach us anymore: we're within a dtor, // so this virtual-method-call the base class does not work, we're already dead then... - if (m_aDialog) + if (m_xDialog) { ::osl::MutexGuard aGuard(m_aMutex); - if (m_aDialog) + if (m_xDialog) destroyDialog(); } } @@ -71,10 +71,12 @@ void ChartTypeUnoDlg::implInitialize(const uno::Any& _rValue) else ChartTypeUnoDlg_BASE::implInitialize(_rValue); } -svt::OGenericUnoDialog::Dialog ChartTypeUnoDlg::createDialog(const css::uno::Reference& rParent) + +std::unique_ptr ChartTypeUnoDlg::createDialog(const css::uno::Reference& rParent) { - return svt::OGenericUnoDialog::Dialog(std::make_unique(Application::GetFrameWeld(rParent), m_xChartModel)); + return std::make_unique(Application::GetFrameWeld(rParent), m_xChartModel); } + uno::Reference SAL_CALL ChartTypeUnoDlg::getPropertySetInfo() { return createPropertySetInfo( getInfoHelper() ); diff --git a/chart2/source/controller/inc/dlg_ChartType_UNO.hxx b/chart2/source/controller/inc/dlg_ChartType_UNO.hxx index bc6c211205bc..6cadcd5e6573 100644 --- a/chart2/source/controller/inc/dlg_ChartType_UNO.hxx +++ b/chart2/source/controller/inc/dlg_ChartType_UNO.hxx @@ -40,7 +40,7 @@ private: // OGenericUnoDialog overridables virtual void implInitialize(const css::uno::Any& _rValue) override; - virtual svt::OGenericUnoDialog::Dialog createDialog(const css::uno::Reference& rParent) override; + virtual std::unique_ptr createDialog(const css::uno::Reference& rParent) override; // XTypeProvider virtual css::uno::Sequence SAL_CALL getImplementationId( ) override; -- cgit