Fix corrupt Token::Match pattern

This commit is contained in:
Daniel Marjamäki 2017-09-21 15:01:34 +02:00
parent 9647793af9
commit 89b9f57759
1 changed files with 1 additions and 1 deletions

View File

@ -1897,7 +1897,7 @@ void Tokenizer::combineStringAndCharLiterals()
{ {
// Combine wide strings and wide characters // Combine wide strings and wide characters
for (Token *tok = list.front(); tok; tok = tok->next()) { for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "[Lu] %char%|%string%")) { if (Token::Match(tok, "[Lu] %char%|%str%")) {
// Combine 'L "string"' and 'L 'c'' // Combine 'L "string"' and 'L 'c''
tok->str(tok->next()->str()); tok->str(tok->next()->str());
tok->deleteNext(); tok->deleteNext();