[Libreoffice-commits] .: patches/vba

Tor Lillqvist tml at kemper.freedesktop.org
Tue Nov 2 10:07:42 PDT 2010


 patches/vba/vba-container-controls.diff |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit e60ec6c28d96a912fee8984cb74d44b8b5cb8b69
Author: Tor Lillqvist <tlillqvist at novell.com>
Date:   Tue Nov 2 19:04:26 2010 +0200

    Fix mutex compilation errors
    
    Use SolarMutexGuard as that is probably what was intended.

diff --git a/patches/vba/vba-container-controls.diff b/patches/vba/vba-container-controls.diff
index 0cacdb0..3273d81 100644
--- a/patches/vba/vba-container-controls.diff
+++ b/patches/vba/vba-container-controls.diff
@@ -2533,7 +2533,7 @@ index 9332a0b..f367f7d 100644
 +}
 +void SAL_CALL VCLXMultiPage::dispose() throw(::com::sun::star::uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +
 +    ::com::sun::star::lang::EventObject aObj;
 +    aObj.Source = (::cppu::OWeakObject*)this;
@@ -2557,7 +2557,7 @@ index 9332a0b..f367f7d 100644
 +void SAL_CALL VCLXMultiPage::draw( sal_Int32 nX, sal_Int32 nY )
 +throw(::com::sun::star::uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    Window* pWindow = GetWindow();
 +
 +    if ( pWindow )
@@ -2583,7 +2583,7 @@ index 9332a0b..f367f7d 100644
 +
 +uno::Any SAL_CALL VCLXMultiPage::getProperty( const ::rtl::OUString& PropertyName ) throw(::com::sun::star::uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    OSL_TRACE(" **** VCLXMultiPage::getProperty( %s )", 
 +        rtl::OUStringToOString( PropertyName,
 +        RTL_TEXTENCODING_UTF8 ).getStr() );
@@ -2608,7 +2608,7 @@ index 9332a0b..f367f7d 100644
 +    const ::com::sun::star::uno::Any& Value )
 +throw(::com::sun::star::uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    OSL_TRACE(" **** VCLXMultiPage::setProperty( %s )", rtl::OUStringToOString( PropertyName, RTL_TEXTENCODING_UTF8 ).getStr() );
 +
 +    TabControl* pTabControl = (TabControl*)GetWindow();
@@ -2708,19 +2708,19 @@ index 9332a0b..f367f7d 100644
 +
 +void SAL_CALL VCLXMultiPage::addTabListener( const uno::Reference< awt::XTabListener >& xListener ) throw (uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    maTabListeners.addInterface( xListener );
 +}
 +
 +void SAL_CALL VCLXMultiPage::removeTabListener( const uno::Reference< awt::XTabListener >& xListener ) throw (uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    maTabListeners.addInterface( xListener );
 +}
 +
 +void SAL_CALL VCLXMultiPage::setTabProps( sal_Int32 ID, const uno::Sequence< beans::NamedValue >& Properties ) throw (uno::RuntimeException, lang::IndexOutOfBoundsException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    TabControl *pTabControl = getTabControl();
 +    if ( pTabControl->GetTabPage( sal::static_int_cast< USHORT >( ID ) ) == NULL )
 +        throw lang::IndexOutOfBoundsException();
@@ -2741,7 +2741,7 @@ index 9332a0b..f367f7d 100644
 +uno::Sequence< beans::NamedValue > SAL_CALL VCLXMultiPage::getTabProps( sal_Int32 ID )
 +    throw (lang::IndexOutOfBoundsException, uno::RuntimeException)
 +{
-+    ::osl::SolarGuard aGuard( GetMutex() );
++    SolarMutexGuard aGuard;
 +    TabControl *pTabControl = getTabControl();
 +    if ( pTabControl->GetTabPage( sal::static_int_cast< USHORT >( ID ) ) == NULL )
 +        throw lang::IndexOutOfBoundsException();
@@ -2876,7 +2876,7 @@ index 9332a0b..f367f7d 100644
 +void SAL_CALL VCLXFrame::draw( sal_Int32 nX, sal_Int32 nY )
 +throw(::com::sun::star::uno::RuntimeException)
 +{
-+	::osl::SolarGuard aGuard( GetMutex() );
++	SolarMutexGuard aGuard;
 +	Window* pWindow = GetWindow();
 +
 +	if ( pWindow )
@@ -2905,7 +2905,7 @@ index 9332a0b..f367f7d 100644
 +    const ::com::sun::star::uno::Any& Value )
 +throw(::com::sun::star::uno::RuntimeException)
 +{
-+	::osl::SolarGuard aGuard( GetMutex() );
++	SolarMutexGuard aGuard;
 +
 +#if OSL_DEBUG_LEVEL > 0
 +	sal_Bool bVoid = Value.getValueType().getTypeClass() == ::com::sun::star::uno::TypeClass_VOID;


More information about the Libreoffice-commits mailing list