Skip to content

Commit c8f80db

Browse files
Update checkclass.cpp
1 parent 94ff4d3 commit c8f80db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/checkclass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2597,8 +2597,8 @@ bool CheckClass::checkConstFunc(const Scope *scope, const Function *func, Member
25972597
return false;
25982598
const auto yield = vt->container->getYield(end->str());
25992599
const Token* parent = tok1->astParent();
2600-
while (Token::Match(parent, "(|.|::"))
2601-
parent = parent->astParent();
2600+
while (Token::Match(parent, "(|.|::"))
2601+
parent = parent->astParent();
26022602
if (contains({Library::Container::Yield::START_ITERATOR, Library::Container::Yield::END_ITERATOR, Library::Container::Yield::ITERATOR}, yield)) {
26032603
if (parent && parent->isComparisonOp())
26042604
return true;

0 commit comments

Comments
 (0)