Fix possible bug caused by previous commit.
This commit is contained in:
parent
b29673f4a2
commit
e825de1450
|
@ -738,7 +738,7 @@ void Tokenizer::setVarId()
|
||||||
{
|
{
|
||||||
const std::string &classname(tok->next()->str());
|
const std::string &classname(tok->next()->str());
|
||||||
|
|
||||||
unsigned int indentlevel = 0;
|
int indentlevel = 0;
|
||||||
|
|
||||||
// What member variables are there in this class?
|
// What member variables are there in this class?
|
||||||
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
for (const Token *tok2 = tok; tok2; tok2 = tok2->next())
|
||||||
|
@ -765,7 +765,7 @@ void Tokenizer::setVarId()
|
||||||
// Found a class function..
|
// Found a class function..
|
||||||
if (Token::Match(tok3, (classname + " :: %var% (").c_str()))
|
if (Token::Match(tok3, (classname + " :: %var% (").c_str()))
|
||||||
{
|
{
|
||||||
unsigned int indentlevel2 = 0;
|
int indentlevel2 = 0;
|
||||||
while (tok3)
|
while (tok3)
|
||||||
{
|
{
|
||||||
if (tok3->str() == "{")
|
if (tok3->str() == "{")
|
||||||
|
|
Loading…
Reference in New Issue