diff --git a/src/ProfileManager.cpp b/src/ProfileManager.cpp index 55ea05288f..9a944cb623 100644 --- a/src/ProfileManager.cpp +++ b/src/ProfileManager.cpp @@ -489,7 +489,7 @@ bool ProfileManager::DeleteLocalProfile( RString sProfileID ) // flush directory cache in an attempt to get this working FILEMAN->FlushDirCache( sProfileDir ); - FOREACH( DirAndProfile, g_vLocalProfile, i ) + for (vector::iterator i = g_vLocalProfile.begin(); i != g_vLocalProfile.end(); ++i) { if( i->sDir == sProfileDir ) {