diff options
author | Sander Vesik <svesik@openoffice.org> | 2004-04-21 13:07:47 +0000 |
---|---|---|
committer | Sander Vesik <svesik@openoffice.org> | 2004-04-21 13:07:47 +0000 |
commit | f690e86642502b46eb2b58656e7846830fe379ec (patch) | |
tree | bccd038e061ff6ad51a67a3310b0574d25f0a10a /cppuhelper/source/interfacecontainer.cxx | |
parent | c1426ed779c5e268d5edaf332da13ca84ff54c37 (diff) |
INTEGRATION: CWS ooo20040329 (1.12.8); FILE MERGED
2004/03/17 11:50:32 waratah 1.12.8.1: #i1858# alter the order of some definitions to fix some -Wall warnings
break up some if statements into two statements instead of assinging in if
Diffstat (limited to 'cppuhelper/source/interfacecontainer.cxx')
-rw-r--r-- | cppuhelper/source/interfacecontainer.cxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/cppuhelper/source/interfacecontainer.cxx b/cppuhelper/source/interfacecontainer.cxx index 8dd99572b6bc..07c3c712fe34 100644 --- a/cppuhelper/source/interfacecontainer.cxx +++ b/cppuhelper/source/interfacecontainer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: interfacecontainer.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: hr $ $Date: 2004-02-04 11:55:23 $ + * last change: $Author: svesik $ $Date: 2004-04-21 14:07:47 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -215,10 +215,10 @@ void OInterfaceIteratorHelper::remove() SAL_THROW( () ) OInterfaceContainerHelper::OInterfaceContainerHelper( Mutex & rMutex_ ) SAL_THROW( () ) - : rMutex( rMutex_ ) + : pData( 0 ) + , rMutex( rMutex_ ) , bInUse( sal_False ) , bIsList( sal_False ) - , pData( 0 ) { } @@ -442,7 +442,8 @@ Sequence< Type > OMultiTypeInterfaceContainerHelper::getContainedTypes() const t_type2ptr::size_type nSize; ::osl::MutexGuard aGuard( rMutex ); - if( nSize = pMap->size() ) + nSize = pMap->size(); + if( nSize ) { ::com::sun::star::uno::Sequence< Type > aInterfaceTypes( nSize ); Type * pArray = aInterfaceTypes.getArray(); @@ -518,7 +519,8 @@ void OMultiTypeInterfaceContainerHelper::disposeAndClear( const EventObject & rE { ::osl::MutexGuard aGuard( rMutex ); t_type2ptr * pMap = (t_type2ptr *)m_pMap; - if( nSize = pMap->size() ) + nSize = pMap->size(); + if( nSize ) { typedef OInterfaceContainerHelper* ppp; ppListenerContainers = new ppp[nSize]; @@ -598,7 +600,8 @@ Sequence< sal_Int32 > OMultiTypeInterfaceContainerHelperInt32::getContainedTypes t_long2ptr::size_type nSize; ::osl::MutexGuard aGuard( rMutex ); - if( nSize = pMap->size() ) + nSize = pMap->size(); + if( nSize ) { ::com::sun::star::uno::Sequence< sal_Int32 > aInterfaceTypes( nSize ); sal_Int32 * pArray = aInterfaceTypes.getArray(); @@ -674,7 +677,8 @@ void OMultiTypeInterfaceContainerHelperInt32::disposeAndClear( const EventObject { ::osl::MutexGuard aGuard( rMutex ); t_long2ptr * pMap = (t_long2ptr *)m_pMap; - if( nSize = pMap->size() ) + nSize = pMap->size(); + if( nSize ) { typedef OInterfaceContainerHelper* ppp; ppListenerContainers = new ppp[nSize]; |