Merge pull request #461 from Dmitry-Me/reuseCOmputedValues

Reuse previously computed values
This commit is contained in:
amai2012 2014-11-14 12:38:24 +01:00
commit bba968f766
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ bool isSameExpression(const Token *tok1, const Token *tok2, const std::set<std::
// some template/cast stuff.. check that the template arguments are same
const Token *t1 = tok1->next();
const Token *t2 = tok2->next();
const Token *end1 = tok1->next()->link();
const Token *end2 = tok2->next()->link();
const Token *end1 = t1->link();
const Token *end2 = t2->link();
while (t1 && t2 && t1 != end1 && t2 != end2) {
if (t1->str() != t2->str())
return false;