tokenize: simplify empty string creation string("")->string().

This commit is contained in:
Martin Ettl 2018-01-21 16:36:57 +01:00
parent 913fdf44b6
commit 17a54681b8
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);