From 2f804099b7daa42aecb8fa445072a381671f3385 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Mar 2016 09:53:05 +0200 Subject: loplugin:constantparam in framework Change-Id: I7b7914365ef5d5c6f120f34c93f359c156aa6a02 --- framework/source/fwi/classes/propertysethelper.cxx | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'framework/source/fwi') diff --git a/framework/source/fwi/classes/propertysethelper.cxx b/framework/source/fwi/classes/propertysethelper.cxx index 8595ec32d3c5..69c083c0b7c6 100644 --- a/framework/source/fwi/classes/propertysethelper.cxx +++ b/framework/source/fwi/classes/propertysethelper.cxx @@ -27,11 +27,9 @@ namespace framework{ PropertySetHelper::PropertySetHelper( osl::Mutex & mutex, - TransactionManager* pExternalTransactionManager , - bool bReleaseLockOnCall ) + TransactionManager* pExternalTransactionManager ) : m_lSimpleChangeListener(mutex) , m_lVetoChangeListener (mutex) - , m_bReleaseLockOnCall (bReleaseLockOnCall ) , m_rTransactionManager (*pExternalTransactionManager ) { } @@ -162,13 +160,6 @@ void SAL_CALL PropertySetHelper::setPropertyValue(const OUString& sProperty, css::beans::Property aPropInfo = pIt->second; bool bLocked = true; - if (m_bReleaseLockOnCall) - { - aWriteLock.clear(); - bLocked = false; - // <- SAFE - } - css::uno::Any aCurrentValue = impl_getPropertyValue(aPropInfo.Name, aPropInfo.Handle); if (! bLocked) @@ -189,12 +180,6 @@ void SAL_CALL PropertySetHelper::setPropertyValue(const OUString& sProperty, aEvent.NewValue = aValue; aEvent.Source.set(m_xBroadcaster.get(), css::uno::UNO_QUERY); - if (m_bReleaseLockOnCall) - { - aWriteLock.clear(); - // <- SAFE - } - if (impl_existsVeto(aEvent)) throw css::beans::PropertyVetoException(); @@ -219,9 +204,6 @@ css::uno::Any SAL_CALL PropertySetHelper::getPropertyValue(const OUString& sProp css::beans::Property aPropInfo = pIt->second; - if (m_bReleaseLockOnCall) - aReadLock.clear(); - return impl_getPropertyValue(aPropInfo.Name, aPropInfo.Handle); } -- cgit