Refactoring: Use range for loop

This commit is contained in:
Daniel Marjamäki 2019-07-18 14:54:39 +02:00
parent 9c8c539549
commit 28e5133f50
1 changed files with 2 additions and 2 deletions

View File

@ -725,8 +725,8 @@ void SymbolDatabase::createSymbolDatabaseClassInfo()
// fill in friend info
for (std::list<Type>::iterator it = typeList.begin(); it != typeList.end(); ++it) {
for (std::vector<Type::FriendInfo>::iterator i = it->friendList.begin(); i != it->friendList.end(); ++i) {
i->type = findType(i->nameStart, it->enclosingScope);
for (Type::FriendInfo &friendInfo : it->friendList) {
friendInfo.type = findType(friendInfo.nameStart, it->enclosingScope);
}
}
}