diff -r b73a2e62868f -r 6752808b2036 contextengine/src/contextengineao.cpp --- a/contextengine/src/contextengineao.cpp Tue Feb 02 00:24:33 2010 +0200 +++ b/contextengine/src/contextengineao.cpp Fri Feb 19 23:14:48 2010 +0200 @@ -131,7 +131,8 @@ { iMdESession = aSession; - for ( TInt i = 0; i < iPlugins.Count(); ++i ) + const TInt count( iPlugins.Count() ); + for ( TInt i = 0; i < count; ++i ) { iPlugins[i]->SetMdeSession( *aSession ); }