Code style: Use 'linkAt' instead of 'tokAt(..)->link'.
This commit is contained in:
parent
dd18f595b1
commit
4399fca769
|
@ -140,7 +140,7 @@ void CheckStl::iterators()
|
||||||
// taking the result of an erase is ok
|
// taking the result of an erase is ok
|
||||||
else if (Token::Match(tok2, "%varid% = %var% . erase (", iteratorId)) {
|
else if (Token::Match(tok2, "%varid% = %var% . erase (", iteratorId)) {
|
||||||
// the returned iterator is valid
|
// the returned iterator is valid
|
||||||
validatingToken = tok2->tokAt(5)->link();
|
validatingToken = tok2->linkAt(5);
|
||||||
tok2 = tok2->tokAt(5);
|
tok2 = tok2->tokAt(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue