Merge pull request #294 from simartin/typo_520aaf71

Reinstate error message.
This commit is contained in:
Daniel Marjamäki 2014-05-04 20:49:01 +02:00
commit d17f926422
1 changed files with 1 additions and 1 deletions

View File

@ -587,7 +587,7 @@ bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
multicompare(p,tok->isName(),ismulticomp);
} else { // %varid%
if (varid == 0) {
throw InternalError(tok, "Internal error. Tokentch called with varid 0. Please report this to Cppcheck developers");
throw InternalError(tok, "Internal error. Token::Match called with varid 0. Please report this to Cppcheck developers");
}
if (tok->varId() != varid)