diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-01-12 12:54:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-01-12 12:54:06 +0000 |
commit | c34bae9706fce2bb1a9e9794f75a8233b1312042 (patch) | |
tree | 43ec1bd470a4fa9812f2d2761bca977e8488b71b /cppuhelper/source/propshlp.cxx | |
parent | silence spurious warning (diff) | |
download | core-c34bae9706fce2bb1a9e9794f75a8233b1312042.tar.gz core-c34bae9706fce2bb1a9e9794f75a8233b1312042.zip |
Some cppcheck cleaning
Diffstat (limited to 'cppuhelper/source/propshlp.cxx')
-rw-r--r-- | cppuhelper/source/propshlp.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cppuhelper/source/propshlp.cxx b/cppuhelper/source/propshlp.cxx index 11aca838c288..c37bedec9902 100644 --- a/cppuhelper/source/propshlp.cxx +++ b/cppuhelper/source/propshlp.cxx @@ -909,11 +909,11 @@ void OPropertySetHelper::firePropertiesChangeEvent( Sequence<PropertyChangeEvent> aChanges( nFireLen ); PropertyChangeEvent* pChanges = aChanges.getArray(); - sal_Int32 nFirePos = 0; { // must lock the mutex outside the loop. So all values are consistent. MutexGuard aGuard( rBHelper.rMutex ); Reference < XInterface > xSource( (XPropertySet *)this, UNO_QUERY ); + sal_Int32 nFirePos = 0; for( i = 0; i < nLen; i++ ) { if( pHandles[i] != -1 ) @@ -946,7 +946,6 @@ PropertyState OPropertySetHelper::getPropertyState( const OUString& PropertyName Sequence< PropertyState > OPropertySetHelper::getPropertyStates( const Sequence< OUString >& PropertyNames ) { ULONG nNames = PropertyNames.getLength(); - const OUString* pNames = PropertyNames.getConstArray(); Sequence< PropertyState > aStates( nNames ); return aStates; |