Fixed wrong variable being used in CheckOther::checkPassByReference()

This commit is contained in:
PKEuS 2016-08-04 15:30:33 +02:00
parent 9711064b74
commit ad96f7b519
1 changed files with 1 additions and 1 deletions

View File

@ -1472,7 +1472,7 @@ void CheckOther::checkPassByReference()
while (tok3 && tok3->str() != "(") {
if (tok3->link() && Token::Match(tok3, ")|]|}|>"))
tok3 = tok3->link();
else if (tok->link())
else if (tok3->link())
break;
else if (tok3->str() == ";")
break;