harvester/common/src/propertywatcher.cpp
branchRCL_3
changeset 3 6752808b2036
parent 0 c53acadfccc6
child 7 3cebc1a84278
equal deleted inserted replaced
2:b73a2e62868f 3:6752808b2036
   201     {
   201     {
   202     WRITELOG( "CPropertyWatcher::FindListener() - begin" ); 
   202     WRITELOG( "CPropertyWatcher::FindListener() - begin" ); 
   203 	
   203 	
   204     TInt listenerIndex ( KErrNotFound );
   204     TInt listenerIndex ( KErrNotFound );
   205     
   205     
   206     for ( TInt i = iListenersArray.Count(); --i >= 0; )
   206     const TInt count( iListenersArray.Count() );
       
   207     for ( TInt i = count; --i >= 0; )
   207     	{
   208     	{
   208     	CListener& listenerItem = *iListenersArray[i];
   209     	CListener& listenerItem = *iListenersArray[i];
   209     	
   210     	
   210     	if ( aKey == listenerItem.ObservedKey() &&
   211     	if ( aKey == listenerItem.ObservedKey() &&
   211 			aPropertyCategory == listenerItem.ObservedCategory() ) 
   212 			aPropertyCategory == listenerItem.ObservedCategory() )