Try to fix Cppcheck self-check warnings
This commit is contained in:
parent
203d6ebe5a
commit
dc230d18ef
|
@ -660,7 +660,7 @@ Scope *clangimport::AstNode::createScope(TokenList *tokenList, Scope::ScopeType
|
||||||
if (replaceVar.find(&(*var)) != replaceVar.end())
|
if (replaceVar.find(&(*var)) != replaceVar.end())
|
||||||
varlist.erase(var++);
|
varlist.erase(var++);
|
||||||
else
|
else
|
||||||
var++;
|
++var;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
scope->bodyStart = addtoken(tokenList, "{");
|
scope->bodyStart = addtoken(tokenList, "{");
|
||||||
|
|
|
@ -246,6 +246,8 @@ public:
|
||||||
|
|
||||||
~Variable();
|
~Variable();
|
||||||
|
|
||||||
|
Variable &operator=(const Variable &var) = delete;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get name token.
|
* Get name token.
|
||||||
* @return name token
|
* @return name token
|
||||||
|
|
Loading…
Reference in New Issue