summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Abecasis <joao@abecasis.name>2009-07-22 11:02:38 (GMT)
committerJoão Abecasis <joao@abecasis.name>2009-07-22 12:36:18 (GMT)
commite3821cbae6f961a0e3a44f0863a3fd3424b540ba (patch)
tree6a94abe37c8668d6ab00e9d9179c9c2e54fea5b8
parent8e743bc5e4d697d3204a8d7d861afe81927af3ab (diff)
downloadQt-e3821cbae6f961a0e3a44f0863a3fd3424b540ba.zip
Qt-e3821cbae6f961a0e3a44f0863a3fd3424b540ba.tar.gz
Qt-e3821cbae6f961a0e3a44f0863a3fd3424b540ba.tar.bz2
Off-by-one error in QResourceFileEngineIterator
This was making the resource iterator return empty entries after listing resources. This showed up after QDirIterator stopped filtering empty entries. Reviewed-by: Olivier Goffart
-rw-r--r--src/corelib/io/qresource_iterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/io/qresource_iterator.cpp b/src/corelib/io/qresource_iterator.cpp
index e97ac59..025fccf 100644
--- a/src/corelib/io/qresource_iterator.cpp
+++ b/src/corelib/io/qresource_iterator.cpp
@@ -79,7 +79,7 @@ bool QResourceFileEngineIterator::hasNext() const
that->index = 0;
}
- return index <= entries.size();
+ return index < entries.size();
}
QString QResourceFileEngineIterator::currentFileName() const