code style fixing
This commit is contained in:
parent
8bbd4b9401
commit
ad9aba6e1b
|
@ -971,14 +971,14 @@ void CheckOther::functionVariableUsage()
|
||||||
|
|
||||||
void CheckOther::strPlusChar()
|
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);
|
const char *s = tok->strAt(2);
|
||||||
|
|
||||||
// char constant..
|
// char constant..
|
||||||
if ( *s == '\'' )
|
if (*s == '\'')
|
||||||
_errorLogger->reportErr(ErrorMessage::strPlusChar(_tokenizer, tok));
|
_errorLogger->reportErr(ErrorMessage::strPlusChar(_tokenizer, tok));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue