Merge pull request #452 from Dmitry-Me/stopOnceFirstMatchIsFound

Don't proceed to outer scope once match is found
This commit is contained in:
PKEuS 2014-10-02 12:10:41 +02:00
commit d1d4febebf
1 changed files with 2 additions and 0 deletions

View File

@ -2254,6 +2254,8 @@ void Function::addArguments(const SymbolDatabase *symbolDatabase, const Scope *s
break; break;
} }
} }
if (argType)
break;
parent = parent->nestedIn; parent = parent->nestedIn;
} }
} }