Fixed ticket #398 (valgrind shows error when running testrunner)
http://172.29.29.21/apps/trac/cppcheck/ticket/398
This commit is contained in:
parent
9ea80b4d74
commit
a6d2dceeb3
|
@ -1884,15 +1884,14 @@ bool Tokenizer::simplifyQuestionMark()
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
end = end->next();
|
end = end->next();
|
||||||
tok = tok->previous();
|
tok = tok->previous()->previous();
|
||||||
while (tok->next() != end)
|
while (tok->next() != end)
|
||||||
{
|
{
|
||||||
tok->deleteNext();
|
tok->deleteNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
Token *temp = tok;
|
|
||||||
tok = tok->next();
|
tok = tok->next();
|
||||||
temp->deleteThis();
|
ret = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue