use func->start rather than searching for '{' in CheckClass::privateFunctions

This commit is contained in:
Robert Reif 2011-02-20 08:36:06 -05:00
parent 597aea9f15
commit 537ac0cb34
1 changed files with 1 additions and 3 deletions

View File

@ -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())