Better variable name

This commit is contained in:
Dmitry-Me 2015-12-07 12:21:17 +03:00
parent f624f6fc25
commit 67f0301f0b
1 changed files with 2 additions and 2 deletions

View File

@ -7905,7 +7905,7 @@ void Tokenizer::simplifyEnum()
}
namespace {
const std::set<std::string> f = make_container< std::set<std::string> > () <<
const std::set<std::string> stdFunctionsPresentInC = make_container< std::set<std::string> > () <<
"strcat" <<
"strcpy" <<
"strncat" <<
@ -7925,7 +7925,7 @@ void Tokenizer::simplifyStd()
continue;
if (Token::Match(tok->previous(), "[(,{};] std :: %name% (") &&
f.find(tok->strAt(2)) != f.end()) {
stdFunctionsPresentInC.find(tok->strAt(2)) != stdFunctionsPresentInC.end()) {
tok->deleteNext();
tok->deleteThis();
}