Refactor lib/astutils.cpp

This commit is contained in:
jrp2014 2018-04-05 08:07:22 +02:00 committed by Daniel Marjamäki
parent 214322d501
commit e65c63e2bb
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ bool isVariableChangedByFunctionCall(const Token *tok, const Settings *settings,
if (tok->variable() && tok->variable()->nameToken() == tok) {
// Find constructor..
const unsigned int argCount = numberOfArguments(tok);
const ::Scope *typeScope = tok->variable()->typeScope();
const Scope *typeScope = tok->variable()->typeScope();
if (typeScope) {
for (std::list<Function>::const_iterator it = typeScope->functionList.begin(); it != typeScope->functionList.end(); ++it) {
if (!it->isConstructor() || it->argCount() < argCount)