From c724d88472813a99392aba4d2706d472a9c11bde Mon Sep 17 00:00:00 2001 From: chrchr-github Date: Wed, 31 Jan 2024 22:24:51 +0100 Subject: [PATCH] Fix --- lib/checkstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkstl.cpp b/lib/checkstl.cpp index 5c113662d1c..e1c5cb333d3 100644 --- a/lib/checkstl.cpp +++ b/lib/checkstl.cpp @@ -3152,7 +3152,7 @@ void CheckStl::eraseIteratorOutOfBounds() if (!tok->valueType()) continue; const Library::Container* container = tok->valueType()->container; - if (!container || (!astIsLHS(tok) && !Token::simpleMatch(tok->astParent(), "."))) + if (!container || !astIsLHS(tok) || !Token::simpleMatch(tok->astParent(), ".")) continue; const Token* const ftok = tok->astParent()->astOperand2(); const Library::Container::Action action = container->getAction(ftok->str());