Avoid C++11 for-range to make AppVeyor happy

This commit is contained in:
Daniel Marjamäki 2016-05-09 13:05:08 +02:00
parent 381fa53ec6
commit 9c8922541e
1 changed files with 2 additions and 2 deletions

View File

@ -3406,8 +3406,8 @@ const Enumerator * SymbolDatabase::findEnumerator(const Token * tok) const
if (enumerator) if (enumerator)
return enumerator; return enumerator;
for (const Scope * s : scope->nestedList) { for (std::list<Scope*>::const_iterator s = scope->nestedList.begin(); s != scope->nestedList.end(); ++s) {
enumerator = s->findEnumerator(tok->str()); enumerator = (*s)->findEnumerator(tok->str());
if (enumerator) if (enumerator)
return enumerator; return enumerator;