Fixed typo in checkautovariables.cpp: getPointerDepth() (#4329)
This commit is contained in:
parent
c0f55a2b85
commit
460f63558d
|
@ -442,7 +442,7 @@ static int getPointerDepth(const Token *tok)
|
||||||
int n = 0;
|
int n = 0;
|
||||||
std::pair<const Token*, const Token*> decl = Token::typeDecl(tok);
|
std::pair<const Token*, const Token*> decl = Token::typeDecl(tok);
|
||||||
for (const Token* tok2 = decl.first; tok2 != decl.second; tok2 = tok2->next())
|
for (const Token* tok2 = decl.first; tok2 != decl.second; tok2 = tok2->next())
|
||||||
if (Token::simpleMatch(tok, "*"))
|
if (Token::simpleMatch(tok2, "*"))
|
||||||
n++;
|
n++;
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue