From 9816358e8b42357e5749aa90102c47de1f198670 Mon Sep 17 00:00:00 2001 From: Martin Ettl Date: Fri, 19 Jan 2018 22:41:51 +0100 Subject: [PATCH] Cleanup not needed variable. --- lib/checkstring.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/checkstring.cpp b/lib/checkstring.cpp index 3ab9e275b..c8fa4df4e 100644 --- a/lib/checkstring.cpp +++ b/lib/checkstring.cpp @@ -382,9 +382,8 @@ void CheckString::overlappingStrcmp() notEquals0.push_back(t); } - bool error = false; - for (std::list::const_iterator eq0 = equals0.begin(); !error && eq0 != equals0.end(); ++eq0) { - for (std::list::const_iterator ne0 = notEquals0.begin(); !error && ne0 != notEquals0.end(); ++ne0) { + for (std::list::const_iterator eq0 = equals0.begin(); eq0 != equals0.end(); ++eq0) { + for (std::list::const_iterator ne0 = notEquals0.begin(); ne0 != notEquals0.end(); ++ne0) { const Token *tok1 = *eq0; const Token *tok2 = *ne0; if (!Token::simpleMatch(tok1->previous(), "strcmp ("))