summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2011-03-21 14:18:14 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2011-03-22 14:41:11 (GMT)
commit26737dcd4296dce49e5f562439de3a0d13127e63 (patch)
tree8ee64c4c059677825679a8b2f9c7e6b87a095d68 /tests
parentec21b536dfcc439b255e8f4ba342df723ff4ca63 (diff)
downloadQt-26737dcd4296dce49e5f562439de3a0d13127e63.zip
Qt-26737dcd4296dce49e5f562439de3a0d13127e63.tar.gz
Qt-26737dcd4296dce49e5f562439de3a0d13127e63.tar.bz2
Compile in C++0x mode
Diffstat (limited to 'tests')
-rw-r--r--tests/benchmarks/corelib/io/qfile/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/benchmarks/corelib/io/qfile/main.cpp b/tests/benchmarks/corelib/io/qfile/main.cpp
index 14d8ea4..9c8684d 100644
--- a/tests/benchmarks/corelib/io/qfile/main.cpp
+++ b/tests/benchmarks/corelib/io/qfile/main.cpp
@@ -60,16 +60,16 @@
// 10 predefined (but random() seek positions
// hardcoded to be comparable over several runs
-const int seekpos[] = {TF_SIZE*0.52,
- TF_SIZE*0.23,
- TF_SIZE*0.73,
- TF_SIZE*0.77,
- TF_SIZE*0.80,
- TF_SIZE*0.12,
- TF_SIZE*0.53,
- TF_SIZE*0.21,
- TF_SIZE*0.27,
- TF_SIZE*0.78};
+const int seekpos[] = {int(TF_SIZE*0.52),
+ int(TF_SIZE*0.23),
+ int(TF_SIZE*0.73),
+ int(TF_SIZE*0.77),
+ int(TF_SIZE*0.80),
+ int(TF_SIZE*0.12),
+ int(TF_SIZE*0.53),
+ int(TF_SIZE*0.21),
+ int(TF_SIZE*0.27),
+ int(TF_SIZE*0.78)};
const int sp_size = sizeof(seekpos)/sizeof(int);