From a4414cd9d5e9818b944430593f7e4f1189e12758 Mon Sep 17 00:00:00 2001 From: Eskil Abrahamsen Blomfeldt Date: Thu, 18 Feb 2010 12:44:12 +0100 Subject: Run firstRun initialization in declarative/painting benchmark The firstRun block of the paint event would never be executed because of a typo in the condition. Reviewed-by: TrustMe --- tests/benchmarks/declarative/painting/paintbenchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/benchmarks/declarative/painting/paintbenchmark.cpp b/tests/benchmarks/declarative/painting/paintbenchmark.cpp index 8b8fc5e..dd52740 100644 --- a/tests/benchmarks/declarative/painting/paintbenchmark.cpp +++ b/tests/benchmarks/declarative/painting/paintbenchmark.cpp @@ -227,7 +227,7 @@ public: void paintEvent(QPaintEvent *) { static int last = 0; static bool firstRun = true; - if (firstRun == 0) { + if (firstRun) { timer.start(); firstRun = false; } else { -- cgit v0.12