fix [lib/checkuninitvar.cpp:836]: (warning) Found simple pattern inside Token::Match() call: "&"

This commit is contained in:
Matthias Krüger 2015-09-13 17:54:53 +02:00
parent ab38ab800e
commit 2ddd4c7197
1 changed files with 1 additions and 1 deletions

View File

@ -833,7 +833,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer, Alloc al
const Token *prev = vartok->tokAt(-2);
while (Token::Match(prev, "%name%|*"))
prev = prev->previous();
if (!Token::Match(prev, "&"))
if (!Token::simpleMatch(prev, "&"))
return true;
}