Skip to content

Commit 2a0a90c

Browse files
Update checkstl.cpp
1 parent ef06677 commit 2a0a90c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎lib/checkstl.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,8 @@ static std::pair<const Token *, const Token *> isMapFind(const Token *tok)
16361636
return {};
16371637
if (!tok->astOperand2())
16381638
return {};
1639+
if (!Token::simpleMatch(tok->astParent(), "=="))
1640+
return {};
16391641
return {contTok, tok->astOperand2()};
16401642
}
16411643

0 commit comments

Comments
 (0)