From 6fd4ba6e4fbc2f2ac01010b28df64ddab3e6377c Mon Sep 17 00:00:00 2001 From: firewave Date: Thu, 24 Jun 2010 04:24:25 +0200 Subject: [PATCH] Avoid Visual Studio warnings about constant expressions --- lib/checkclass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index a0a6f5200..90577eb2a 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -1721,7 +1721,7 @@ bool CheckClass::sameFunc(int nest, const Token *firstEnd, const Token *secondEn bool firstDone = false; bool secondDone = false; - while (true) + for ( ; ; ) { firstDone = false; secondDone = false; @@ -1750,7 +1750,7 @@ bool CheckClass::sameFunc(int nest, const Token *firstEnd, const Token *secondEn firstStart = firstEnd->link()->next(); secondStart = secondEnd->link()->next(); - while (true) + for ( ; ; ) { firstDone = false; secondDone = false;