diff options
Diffstat (limited to 'cppuhelper/source/propshlp.cxx')
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 1a54edffe40e..a7a0f93a396a 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -804,15 +804,15 @@ void OPropertySetHelper::setFastPropertyValues( OSL_ENSURE( !rBHelper.bInDispose, "do not getFastPropertyValue in the dispose call" ); OSL_ENSURE( !rBHelper.bDisposed, "object is disposed" ); - // get the map table - IPropertyArrayHelper & rPH = getInfoHelper(); + // get the map table + IPropertyArrayHelper & rPH = getInfoHelper(); - std::unique_ptr<Any[]> pConvertedValues(new Any[ nHitCount ]); - std::unique_ptr<Any[]> pOldValues(new Any[ nHitCount ]); - sal_Int32 n = 0; - sal_Int32 i; + std::unique_ptr<Any[]> pConvertedValues(new Any[ nHitCount ]); + std::unique_ptr<Any[]> pOldValues(new Any[ nHitCount ]); + sal_Int32 n = 0; + sal_Int32 i; - { + { // must lock the mutex outside the loop. So all values are consistent. MutexGuard aGuard( rBHelper.rMutex ); for( i = 0; i < nSeqLen; i++ ) @@ -835,12 +835,12 @@ void OPropertySetHelper::setFastPropertyValues( } } // release guard to fire events - } + } - // fire vetoable events - fire( pHandles, pConvertedValues.get(), pOldValues.get(), n, true ); + // fire vetoable events + fire( pHandles, pConvertedValues.get(), pOldValues.get(), n, true ); - { + { // must lock the mutex outside the loop. MutexGuard aGuard( rBHelper.rMutex ); // Loop over all changed properties @@ -850,10 +850,10 @@ void OPropertySetHelper::setFastPropertyValues( setFastPropertyValue_NoBroadcast( pHandles[i], pConvertedValues[i] ); } // release guard to fire events - } + } - // fire change events - impl_fireAll( pHandles, pConvertedValues.get(), pOldValues.get(), n ); + // fire change events + impl_fireAll( pHandles, pConvertedValues.get(), pOldValues.get(), n ); } // XMultiPropertySet |