diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-09-10 07:15:27 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-09-10 07:48:06 (GMT) |
commit | 1a3d4eaf52669eff4e48d2f8a2d62c41347bf8d4 (patch) | |
tree | 9dfe20041a8a29900857d10b6ccc0a431542504b | |
parent | 30dcb614f31d64f052312b65bdd7720974b809d4 (diff) | |
download | Qt-1a3d4eaf52669eff4e48d2f8a2d62c41347bf8d4.zip Qt-1a3d4eaf52669eff4e48d2f8a2d62c41347bf8d4.tar.gz Qt-1a3d4eaf52669eff4e48d2f8a2d62c41347bf8d4.tar.bz2 |
Fixing QDir/tree traverseDirectory benchmark
Was missing counter initialization at the start of QBENCHMARK loop.
-rw-r--r-- | tests/benchmarks/corelib/io/qdir/tree/bench_qdir_tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/benchmarks/corelib/io/qdir/tree/bench_qdir_tree.cpp b/tests/benchmarks/corelib/io/qdir/tree/bench_qdir_tree.cpp index ad5ae98..cbe931d 100644 --- a/tests/benchmarks/corelib/io/qdir/tree/bench_qdir_tree.cpp +++ b/tests/benchmarks/corelib/io/qdir/tree/bench_qdir_tree.cpp @@ -154,6 +154,7 @@ private slots: QDir::AllEntries | QDir::NoDotAndDotDot | QDir::Hidden | QDir::System, QDirIterator::Subdirectories | QDirIterator::FollowSymlinks); + count = 0; while (iterator.hasNext()) { iterator.next(); ++count; |