From 9bf80cb53b76d07e305b01cefc4b9224fba07e50 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 29 Jul 2009 03:23:23 +0700 Subject: [PATCH] src/checkstl.cpp(stlBoundries): simplify condition. No functional change. --- src/checkstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkstl.cpp b/src/checkstl.cpp index 1c80f21e8..64d88eeb1 100644 --- a/src/checkstl.cpp +++ b/src/checkstl.cpp @@ -396,7 +396,7 @@ void CheckStl::stlBoundries() break; --indentlevel; } - else if (tok2->varId() == iteratorid && tok2->next() && tok2->next()->str() == "<") + else if (Token::Match(tok2, "%varid% <", iteratorid)) { stlBoundriesError(tok2, container_name); break;