basic/source/inc/namecont.hxx | 6 ++++-- basic/source/uno/namecont.cxx | 7 +++---- 2 files changed, 7 insertions(+), 6 deletions(-)
New commits: commit 9f9347c26531bc084d081f21b43c232f411e2cee Author: Michael Stahl <mst...@redhat.com> Date: Tue Dec 5 21:25:20 2017 +0100 basic: SfxLibraryContainer: replace maMutex ... with cppu::BaseMutex, because a member cannot ensure the life cycle guarantees expected by WeakComponentImplHelper. Change-Id: Iaa10c699abf69882d917487740db241ba1455e1c diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index 1b5d21ebbfd5..cc8d80a8f483 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -190,7 +190,10 @@ typedef ::cppu::WeakComponentImplHelper< css::script::vba::XVBACompatibility, css::lang::XServiceInfo > SfxLibraryContainer_BASE; -class SfxLibraryContainer : public SfxLibraryContainer_BASE, public ::utl::OEventListenerAdapter +class SfxLibraryContainer + : public ::cppu::BaseMutex + , public SfxLibraryContainer_BASE + , public ::utl::OEventListenerAdapter { VBAScriptListenerContainer maVBAScriptListeners; sal_Int32 mnRunningVBAScripts; @@ -202,7 +205,6 @@ protected: css::uno::Reference< css::util::XStringSubstitution > mxStringSubstitution; css::uno::WeakReference< css::frame::XModel > mxOwnerDocument; - ::osl::Mutex maMutex; ModifiableHelper maModifiable; rtl::Reference<NameContainer> maNameContainer; diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index b5853950aeef..54b2f8eb1bf1 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -359,12 +359,11 @@ bool VBAScriptListenerContainer::implTypedNotify( const Reference< vba::XVBAScri // Ctor SfxLibraryContainer::SfxLibraryContainer() - : SfxLibraryContainer_BASE( maMutex ) - - , maVBAScriptListeners( maMutex ) + : SfxLibraryContainer_BASE( m_aMutex ) + , maVBAScriptListeners( m_aMutex ) , mnRunningVBAScripts( 0 ) , mbVBACompat( false ) - , maModifiable( *this, maMutex ) + , maModifiable( *this, m_aMutex ) , maNameContainer( new NameContainer(cppu::UnoType<XNameAccess>::get()) ) , mbOldInfoFormat( false ) , mbOasis2OOoFormat( false ) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits