Code style: Use 'linkAt' instead of 'tokAt(..)->link'.

This commit is contained in:
Edoardo Prezioso 2012-01-14 15:12:03 +01:00
parent dd18f595b1
commit 4399fca769
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void CheckStl::iterators()
// taking the result of an erase is ok
else if (Token::Match(tok2, "%varid% = %var% . erase (", iteratorId)) {
// the returned iterator is valid
validatingToken = tok2->tokAt(5)->link();
validatingToken = tok2->linkAt(5);
tok2 = tok2->tokAt(5);
}