summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-23 09:53:05 +0200
committerNoel Grandin <noel@peralex.com>2016-03-23 10:19:43 +0200
commit2f804099b7daa42aecb8fa445072a381671f3385 (patch)
tree782719392b4b8c35a186693baa872427978ba242 /framework/source/fwi
parent5b79f5a4e5126a427c14c46e65b3a0b898024f60 (diff)
loplugin:constantparam in framework
Change-Id: I7b7914365ef5d5c6f120f34c93f359c156aa6a02
Diffstat (limited to 'framework/source/fwi')
-rw-r--r--framework/source/fwi/classes/propertysethelper.cxx20
1 files changed, 1 insertions, 19 deletions
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);
}