Skip to content

Commit 7129b1c

Browse files
committed
Merge pull request cppcheck-opensource#716 from Dmitry-Me/betterVariableName7
Better variable name
2 parents 26b699f + 67f0301 commit 7129b1c

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
@@ -7908,7 +7908,7 @@ void Tokenizer::simplifyEnum()
79087908
}
79097909

79107910
namespace {
7911-
const std::set<std::string> f = make_container< std::set<std::string> > () <<
7911+
const std::set<std::string> stdFunctionsPresentInC = make_container< std::set<std::string> > () <<
79127912
"strcat" <<
79137913
"strcpy" <<
79147914
"strncat" <<
@@ -7928,7 +7928,7 @@ void Tokenizer::simplifyStd()
79287928
continue;
79297929

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

0 commit comments

Comments
 (0)