diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-18 11:44:12 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-02-18 11:45:18 (GMT) |
commit | a4414cd9d5e9818b944430593f7e4f1189e12758 (patch) | |
tree | d68f897e88f4a331b10570a3bc5b20b2c443eed6 | |
parent | bd7313696d4d779c782922fbdc65d48620fe0b21 (diff) | |
download | Qt-a4414cd9d5e9818b944430593f7e4f1189e12758.zip Qt-a4414cd9d5e9818b944430593f7e4f1189e12758.tar.gz Qt-a4414cd9d5e9818b944430593f7e4f1189e12758.tar.bz2 |
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
-rw-r--r-- | tests/benchmarks/declarative/painting/paintbenchmark.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |