use func->start rather than searching for '{' in CheckClass::privateFunctions
This commit is contained in:
parent
597aea9f15
commit
537ac0cb34
|
@ -640,9 +640,7 @@ void CheckClass::privateFunctions()
|
|||
// Check that all private functions are used..
|
||||
for (func = scope->functionList.begin(); func != scope->functionList.end(); ++func)
|
||||
{
|
||||
const Token *ftok = func->arg->link()->next();
|
||||
while (ftok->str() != "{")
|
||||
ftok = ftok->next();
|
||||
const Token *ftok = func->start;
|
||||
const Token *etok = ftok->link();
|
||||
|
||||
for (; ftok != etok; ftok = ftok->next())
|
||||
|
|
Loading…
Reference in New Issue