[Libreoffice-commits] core.git: ucbhelper/source

Michael Stahl mstahl at redhat.com
Fri Jun 24 10:55:17 UTC 2016


 ucbhelper/source/provider/contenthelper.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 47443d720d5f2bee0993222fd6383a59056d8591
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Jun 22 12:52:49 2016 +0200

    ucbhelper: get rid of pointless scope in ContentImplHelper::release
    
    Change-Id: I5a35674115388288190e3a6496010badc32cf589

diff --git a/ucbhelper/source/provider/contenthelper.cxx b/ucbhelper/source/provider/contenthelper.cxx
index 70418ef..00ae20e 100644
--- a/ucbhelper/source/provider/contenthelper.cxx
+++ b/ucbhelper/source/provider/contenthelper.cxx
@@ -152,10 +152,8 @@ void SAL_CALL ContentImplHelper::release()
     rtl::Reference< ContentProviderImplHelper > xKeepProviderAlive(
         m_xProvider );
 
-    {
-        osl::MutexGuard aGuard( m_xProvider->m_aMutex );
-        OWeakObject::release();
-    }
+    osl::MutexGuard aGuard( m_xProvider->m_aMutex );
+    OWeakObject::release();
 }
 
 uno::Any SAL_CALL ContentImplHelper::queryInterface( const uno::Type & rType )


More information about the Libreoffice-commits mailing list