From 17a54681b86a38338fe20b98849200acca3a243c Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Sun, 21 Jan 2018 16:36:57 +0100 Subject: [PATCH] tokenize: simplify empty string creation string("")->string(). --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 16905b21a..cce6a484a 100755 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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);