Fix ticket #186 (runtime error when checking code that has a namespace)
http://apps.sourceforge.net/trac/cppcheck/ticket/186
This commit is contained in:
parent
9fe8ae452a
commit
2a3535c04f
|
@ -700,9 +700,9 @@ void Tokenizer::simplifyNamespaces()
|
||||||
tok->deleteNext();
|
tok->deleteNext();
|
||||||
start->deleteNext();
|
start->deleteNext();
|
||||||
start->deleteNext();
|
start->deleteNext();
|
||||||
token = start->next();
|
|
||||||
if (start->previous())
|
if (start->previous())
|
||||||
{
|
{
|
||||||
|
token = start->next();
|
||||||
start = start->previous();
|
start = start->previous();
|
||||||
start->deleteNext();
|
start->deleteNext();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue