summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qdiriterator/main.cpp
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-12-18 09:07:46 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-12-18 09:07:46 (GMT)
commit0d212670c06ed54ac785e0bb945c792947d388f5 (patch)
treec4f6c6762ad42df463f30e05e090fa2cfa9de77a /tests/benchmarks/qdiriterator/main.cpp
parent371420d5f31a04b91c01807139d49e97db040bee (diff)
parent7c1283fca1ef2e742b5794600e00edf0c3e3020f (diff)
downloadQt-0d212670c06ed54ac785e0bb945c792947d388f5.zip
Qt-0d212670c06ed54ac785e0bb945c792947d388f5.tar.gz
Qt-0d212670c06ed54ac785e0bb945c792947d388f5.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'tests/benchmarks/qdiriterator/main.cpp')
-rw-r--r--tests/benchmarks/qdiriterator/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/benchmarks/qdiriterator/main.cpp b/tests/benchmarks/qdiriterator/main.cpp
index 2a400e3..9e4e53e 100644
--- a/tests/benchmarks/qdiriterator/main.cpp
+++ b/tests/benchmarks/qdiriterator/main.cpp
@@ -73,7 +73,7 @@ private slots:
void tst_qdiriterator::data()
{
-#ifdef Q_OS_WINCE
+#if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN)
QByteArray qtdir = qPrintable(QCoreApplication::applicationDirPath());
qtdir += "/depot";
#else
@@ -148,9 +148,9 @@ static int posix_helper(const char *dirpath)
int count = 0;
while ((entry = ::readdir(dir))) {
- if (qstrcmp(entry->d_name, ".") == 0)
+ if (qstrcmp(entry->d_name, ".") == 0)
continue;
- if (qstrcmp(entry->d_name, "..") == 0)
+ if (qstrcmp(entry->d_name, "..") == 0)
continue;
++count;
QByteArray ba = dirpath;
@@ -198,7 +198,7 @@ void tst_qdiriterator::diriterator()
//QDir::AllEntries | QDir::Hidden,
QDir::Files,
QDirIterator::Subdirectories);
-
+
while (dir.hasNext()) {
dir.next();
//printf("%s\n", qPrintable(dir.fileName()));
@@ -231,7 +231,7 @@ void tst_qdiriterator::fsiterator()
//QDir::Files | QDir::NoDotAndDotDot,
QDir::Files,
QFileSystemIterator::Subdirectories);
-
+
for (; !dir.atEnd(); dir.next()) {
dump && printf("%d %s\n",
dir.fileInfo().isDir(),