const & for foreach

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=952188
This commit is contained in:
Albert Astals Cid
2009-04-11 11:20:13 +00:00
parent a90c365a3c
commit 0814346bfe
2 changed files with 4 additions and 4 deletions

View File

@@ -345,7 +345,7 @@ void SessionManager::changeProfile(Profile::Ptr info ,
ProfileGroup::Ptr group = info->asGroup();
if (group)
{
foreach(Profile::Ptr profile, group->profiles())
foreach(const Profile::Ptr &profile, group->profiles())
changeProfile(profile,propertyMap,persistant);
return;
}