From: Mikko Rasa Date: Fri, 6 Jul 2012 12:11:31 +0000 (+0300) Subject: Don't use ++ with a bool X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6d414f9169261d7e73cb38e45b1f6772e5ee7c6c;p=libs%2Ftest.git Don't use ++ with a bool --- diff --git a/source/test.cpp b/source/test.cpp index a05349b..910853f 100644 --- a/source/test.cpp +++ b/source/test.cpp @@ -126,7 +126,7 @@ void Test::start_test(const string &descr) void Test::pass_test() { IO::print("\033[32mok\033[0m\n"); - ++passed; + passed = true; } void Test::fail_test(const string &why)