Revert "Fixed #616 (cppcheck crashes with Eigen/src/Cholesky/CholeskyInstantiations.cpp)"

This reverts commit 89f9645174.

This change not fully and properly fixes a problem but just work
arround it. The root of problem is because
Tokenizer::simplifyTemplates() inserts new tokens with brackets which
not link()-ed.
This commit is contained in:
Slava Semushin 2009-08-27 23:40:58 +07:00
parent 929dbe92e4
commit 9e32a0a595
1 changed files with 1 additions and 1 deletions

View File

@ -3118,7 +3118,7 @@ void Tokenizer::simplifyGoto()
std::list<Token *> gotos;
unsigned int indentlevel = 0;
Token *beginfunction = 0;
for (Token *tok = _tokens; tok; tok = (tok ? tok->next() : NULL))
for (Token *tok = _tokens; tok; tok = tok->next())
{
if (tok->str() == "{")
{