Skip to content

Commit 67f0301

Browse files
committed
Better variable name
1 parent f624f6f commit 67f0301

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/tokenize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7905,7 +7905,7 @@ void Tokenizer::simplifyEnum()
79057905
}
79067906

79077907
namespace {
7908-
const std::set<std::string> f = make_container< std::set<std::string> > () <<
7908+
const std::set<std::string> stdFunctionsPresentInC = make_container< std::set<std::string> > () <<
79097909
"strcat" <<
79107910
"strcpy" <<
79117911
"strncat" <<
@@ -7925,7 +7925,7 @@ void Tokenizer::simplifyStd()
79257925
continue;
79267926

79277927
if (Token::Match(tok->previous(), "[(,{};] std :: %name% (") &&
7928-
f.find(tok->strAt(2)) != f.end()) {
7928+
stdFunctionsPresentInC.find(tok->strAt(2)) != stdFunctionsPresentInC.end()) {
79297929
tok->deleteNext();
79307930
tok->deleteThis();
79317931
}

0 commit comments

Comments
 (0)