diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-29 09:24:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-29 09:24:00 +0200 |
commit | d5e4fe23b2af09a2989a0b1c37b13bb4b2ea8787 (patch) | |
tree | 5c303cbf66781928cc48518b6c522d710d2c70dd /framework/source | |
parent | ed7ad21acf35ffdad8656b25e664131bcf38b331 (diff) |
cid#1357163: 'Constant' variable guards dead code
...after 2f804099b7daa42aecb8fa445072a381671f3385 "loplugin:constantparam in
framework"
Change-Id: Ife3ca1da7652ffc52ae2d6057712dcaa35ba2e06
Diffstat (limited to 'framework/source')
-rw-r--r-- | framework/source/fwi/classes/propertysethelper.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/framework/source/fwi/classes/propertysethelper.cxx b/framework/source/fwi/classes/propertysethelper.cxx index 69c083c0b7c6..1e2e12043400 100644 --- a/framework/source/fwi/classes/propertysethelper.cxx +++ b/framework/source/fwi/classes/propertysethelper.cxx @@ -159,14 +159,10 @@ void SAL_CALL PropertySetHelper::setPropertyValue(const OUString& sProperty, css::beans::Property aPropInfo = pIt->second; - bool bLocked = true; css::uno::Any aCurrentValue = impl_getPropertyValue(aPropInfo.Name, aPropInfo.Handle); - if (! bLocked) - { - // SAFE -> - aWriteLock.reset(); - } + // SAFE -> + aWriteLock.reset(); bool bWillBeChanged = (aCurrentValue != aValue); if (! bWillBeChanged) |