summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/corelib/io/qdiriterator/main.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2011-11-29 12:49:24 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-01 09:05:12 +0100
commit98ebac7ede5aa4c16e6f204e0d37d9835a6fad6c (patch)
treeffc2dc5fec0c1b23e5704328dc3af1c1382ba5df /tests/benchmarks/corelib/io/qdiriterator/main.cpp
parentd8492599f1f84564ea04d6450e90cdeffac42e45 (diff)
Fix compilation of Benchmark tests on Windows.
Change-Id: I92186f916792d110f22b23525b673ef006e19046 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/io/qdiriterator/main.cpp')
-rw-r--r--tests/benchmarks/corelib/io/qdiriterator/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/benchmarks/corelib/io/qdiriterator/main.cpp b/tests/benchmarks/corelib/io/qdiriterator/main.cpp
index 319b707948..cecd0de1da 100644
--- a/tests/benchmarks/corelib/io/qdiriterator/main.cpp
+++ b/tests/benchmarks/corelib/io/qdiriterator/main.cpp
@@ -44,7 +44,6 @@
#ifdef Q_OS_WIN
# include <windows.h>
-# include <atlbase.h>
#else
# include <sys/stat.h>
# include <sys/types.h>
@@ -176,7 +175,9 @@ void tst_qdiriterator::posix()
QString path(dirpath);
QBENCHMARK {
#ifdef Q_OS_WIN
- count = posix_helper(path.utf16());
+ wchar_t wPath[MAX_PATH];
+ path.toWCharArray(wPath);
+ count = posix_helper(wPath);
#else
count = posix_helper(dirpath.constData());
#endif