Tokenizer: it is bad to do: 'tok->previous()->deleteThis()'
This commit is contained in:
parent
49c9413798
commit
453adb4ea4
|
@ -5200,7 +5200,10 @@ bool Tokenizer::simplifyKnownVariables()
|
||||||
tok3 = tok3->next();
|
tok3 = tok3->next();
|
||||||
tok3->str(value);
|
tok3->str(value);
|
||||||
if (tok3->previous()->str() == "*" && valueIsPointer)
|
if (tok3->previous()->str() == "*" && valueIsPointer)
|
||||||
tok3->previous()->deleteThis();
|
{
|
||||||
|
tok3 = tok3->previous();
|
||||||
|
tok3->deleteThis();
|
||||||
|
}
|
||||||
ret = true;
|
ret = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue