Refactoring, renamed local variable

This commit is contained in:
Daniel Marjamäki 2017-06-07 12:37:44 +02:00
parent cc2526c5c5
commit 60e36492e2
1 changed files with 3 additions and 3 deletions

View File

@ -1263,14 +1263,14 @@ bool TemplateSimplifier::simplifyTemplateInstantiations(
const bool isfunc(tok->strAt(namepos + 1) == "(");
// locate template usage..
std::string::size_type amountOftemplateInstantiations = templateInstantiations.size();
std::string::size_type numberOfTemplateInstantiations = templateInstantiations.size();
unsigned int recursiveCount = 0;
bool instantiated = false;
for (std::list<Token *>::const_iterator iter2 = templateInstantiations.begin(); iter2 != templateInstantiations.end(); ++iter2) {
if (amountOftemplateInstantiations != templateInstantiations.size()) {
amountOftemplateInstantiations = templateInstantiations.size();
if (numberOfTemplateInstantiations != templateInstantiations.size()) {
numberOfTemplateInstantiations = templateInstantiations.size();
simplifyCalculations(tokenlist.front());
++recursiveCount;
if (recursiveCount > 100) {