Merge pull request #716 from Dmitry-Me/betterVariableName7

Better variable name
This commit is contained in:
amai2012 2015-12-07 10:35:34 +01:00
commit 7129b1c5b3
1 changed files with 2 additions and 2 deletions

View File

@ -7908,7 +7908,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" <<
@ -7928,7 +7928,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();
}