code style fixing

This commit is contained in:
Daniel Marjamäki 2009-01-15 17:00:15 +00:00
parent 8bbd4b9401
commit ad9aba6e1b
1 changed files with 3 additions and 3 deletions

View File

@ -971,14 +971,14 @@ void CheckOther::functionVariableUsage()
void CheckOther::strPlusChar()
{
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next() )
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
{
if ( Token::Match(tok, "%str% + %any%") )
if (Token::Match(tok, "%str% + %any%"))
{
const char *s = tok->strAt(2);
// char constant..
if ( *s == '\'' )
if (*s == '\'')
_errorLogger->reportErr(ErrorMessage::strPlusChar(_tokenizer, tok));
}
}