summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qpixmapcache
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-06-04 09:11:15 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-06-04 09:12:02 (GMT)
commit0a37c9bbf9dc95e0ad422007718a7af11b046deb (patch)
treee610565fcf7f416f23f73e186df6b7e46c3ff5c3 /tests/benchmarks/qpixmapcache
parentd5231e0593dcbf226e0ca3d679c2547e8e1c9697 (diff)
downloadQt-0a37c9bbf9dc95e0ad422007718a7af11b046deb.zip
Qt-0a37c9bbf9dc95e0ad422007718a7af11b046deb.tar.gz
Qt-0a37c9bbf9dc95e0ad422007718a7af11b046deb.tar.bz2
Make the bench a bit faster.
Reviewed-by:TrustMe
Diffstat (limited to 'tests/benchmarks/qpixmapcache')
-rw-r--r--tests/benchmarks/qpixmapcache/tst_qpixmapcache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/benchmarks/qpixmapcache/tst_qpixmapcache.cpp b/tests/benchmarks/qpixmapcache/tst_qpixmapcache.cpp
index f3c1134..9dafff5 100644
--- a/tests/benchmarks/qpixmapcache/tst_qpixmapcache.cpp
+++ b/tests/benchmarks/qpixmapcache/tst_qpixmapcache.cpp
@@ -156,9 +156,9 @@ struct styleStruct {
int height;
bool operator==(const styleStruct &str) const
{
- return str.key == key && str.state == state && str.direction == direction
+ return str.state == state && str.direction == direction
&& str.complex == complex && str.palette == palette && str.width == width
- && str.height == height;
+ && str.height == height && str.key == key;
}
};