From 8519a954a0fdf3c342ea1bfa02ad21cf2564e2b0 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sun, 4 May 2014 17:06:38 +0200 Subject: [PATCH] Reinstate error message. --- lib/token.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/token.cpp b/lib/token.cpp index 9eebbd91e..580b17ea5 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -584,7 +584,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)