From 98ebac7ede5aa4c16e6f204e0d37d9835a6fad6c Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 29 Nov 2011 12:49:24 +0100 Subject: Fix compilation of Benchmark tests on Windows. Change-Id: I92186f916792d110f22b23525b673ef006e19046 Reviewed-by: Sergio Ahumada Reviewed-by: Jason McDonald --- tests/benchmarks/corelib/io/qdiriterator/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/benchmarks/corelib/io/qdiriterator/main.cpp') 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 -# include #else # include # include @@ -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 -- cgit v1.2.3