diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-15 17:57:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-20 21:24:50 +0200 |
commit | e0750697dcd30848411a162453813c5b0fafc44b (patch) | |
tree | 5bb7dc3f033eb27a180450bd7c54af7bd61047b7 /svtools/source | |
parent | 910b8b04325e0103941b6c6d152e4ee5f0388fc2 (diff) |
m_xVclDialog now unused
Change-Id: I12c11451af5c5c9fe0d635a077eee0c57c6aa14f
Reviewed-on: https://gerrit.libreoffice.org/78971
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/uno/genericunodialog.cxx | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/svtools/source/uno/genericunodialog.cxx b/svtools/source/uno/genericunodialog.cxx index 308c1b2987c9..d99c2593531f 100644 --- a/svtools/source/uno/genericunodialog.cxx +++ b/svtools/source/uno/genericunodialog.cxx @@ -174,12 +174,6 @@ bool OGenericUnoDialog::impl_ensureDialog_lck() if (!m_bTitleAmbiguous) aDialog.set_title(sTitle); - if (aDialog.m_xVclDialog) - { - // be notified when the dialog is killed by somebody else #i65958# - aDialog.m_xVclDialog->AddEventListener(LINK(this, OGenericUnoDialog, OnDialogDying)); - } - m_aDialog = std::move(aDialog); return true; @@ -190,7 +184,6 @@ sal_Int16 SAL_CALL OGenericUnoDialog::execute() // both creation and execution of the dialog must be guarded with the SolarMutex, so be generous here SolarMutexGuard aSolarGuard; - ::Dialog* pVclDialogToExecute = nullptr; // create the dialog, if necessary { UnoDialogEntryGuard aGuard( *this ); @@ -205,15 +198,11 @@ sal_Int16 SAL_CALL OGenericUnoDialog::execute() if ( !impl_ensureDialog_lck() ) return 0; - - pVclDialogToExecute = m_aDialog.m_xVclDialog; } // start execution sal_Int16 nReturn(0); - if (pVclDialogToExecute) - nReturn = pVclDialogToExecute->Execute(); - else if (m_aDialog.m_xWeldDialog) + if (m_aDialog.m_xWeldDialog) nReturn = m_aDialog.m_xWeldDialog->run(); { @@ -250,7 +239,6 @@ void OGenericUnoDialog::implInitialize(const Any& _rValue) } } - void SAL_CALL OGenericUnoDialog::initialize( const Sequence< Any >& aArguments ) { ::osl::MutexGuard aGuard( m_aMutex ); @@ -263,23 +251,12 @@ void SAL_CALL OGenericUnoDialog::initialize( const Sequence< Any >& aArguments ) m_bInitialized = true; } - void OGenericUnoDialog::destroyDialog() { SolarMutexGuard aSolarGuard; - m_aDialog.m_xVclDialog.disposeAndClear(); m_aDialog.m_xWeldDialog.reset(); } - -IMPL_LINK( OGenericUnoDialog, OnDialogDying, VclWindowEvent&, _rEvent, void ) -{ - OSL_ENSURE( _rEvent.GetWindow() == m_aDialog.m_xVclDialog, "OGenericUnoDialog::OnDialogDying: where does this come from?" ); - if ( _rEvent.GetId() == VclEventId::ObjectDying ) - m_aDialog.m_xVclDialog = nullptr; -} - - } // namespace svt |