Use range for loop
This commit is contained in:
parent
a81c39af09
commit
74bd2aa680
|
@ -3978,8 +3978,7 @@ const Type* SymbolDatabase::findVariableType(const Scope *start, const Token *ty
|
|||
|
||||
bool Scope::hasInlineOrLambdaFunction() const
|
||||
{
|
||||
for (std::list<Scope*>::const_iterator it = nestedList.begin(); it != nestedList.end(); ++it) {
|
||||
const Scope *s = *it;
|
||||
for (const Scope *s : nestedList) {
|
||||
// Inline function
|
||||
if (s->type == Scope::eUnconditional && Token::simpleMatch(s->bodyStart->previous(), ") {"))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue