Use Token::simpleMatch() for simple pattern

This commit is contained in:
Daniel Marjamäki 2017-04-23 12:14:14 +02:00
parent f2719ec6ca
commit 198c8878ee
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ void CheckString::sprintfOverlappingData()
const std::vector<const Token *> args = getArguments(tok);
const int formatString = Token::Match(tok, "sprintf") ? 1 : 2;
const int formatString = Token::simpleMatch(tok, "sprintf") ? 1 : 2;
for (unsigned int argnr = formatString + 1; argnr < args.size(); ++argnr) {
bool same = isSameExpression(_tokenizer->isCPP(),
false,