Try to fix Cppcheck self-check warnings

This commit is contained in:
Daniel Marjamäki 2021-01-28 12:36:31 +01:00
parent 203d6ebe5a
commit dc230d18ef
2 changed files with 3 additions and 1 deletions

View File

@ -660,7 +660,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType
if (replaceVar.find(&(*var)) != replaceVar.end())
varlist.erase(var++);
else
var++;
++var;
}
}
scope->bodyStart = addtoken(tokenList, "{");

View File

@ -246,6 +246,8 @@ public:
~Variable();
Variable &operator=(const Variable &var) = delete;
/**
* Get name token.
* @return name token