Fixed #2081 (false negative: the function can be declared as const)

This commit is contained in:
Robert Reif 2010-10-11 17:43:36 +02:00 committed by Daniel Marjamäki
parent d9967d4fd2
commit a6e915f0cd
1 changed files with 1 additions and 1 deletions

View File

@ -2200,7 +2200,7 @@ bool CheckClass::checkConstFunc(const SpaceInfo *info, const Token *tok)
}
// function call..
else if ((Token::Match(tok1, "%var% (") && !Token::Match(tok1, "return|c_str|if")) ||
else if ((Token::Match(tok1, "%var% (") && !Token::Match(tok1, "return|c_str|if|string")) ||
Token::Match(tok1, "%var% < %any% > ("))
{
isconst = false;