Merge pull request #1044 from orbitcowboy/master

tokenize: simplify empty string creation string("")->string().
This commit is contained in:
orbitcowboy 2018-01-21 18:23:18 +01:00 committed by GitHub
commit 5b145c3ef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6473,7 +6473,7 @@ bool Tokenizer::simplifyKnownVariables()
const std::string structname = Token::Match(tok2->tokAt(-3), "[;{}] %name% .") ?
std::string(tok2->strAt(-2) + " .") :
std::string("");
std::string();
const Token * const valueToken = tok2->tokAt(2);