[Scummvm-cvs-logs] SF.net SVN: scummvm: [21601] scummvm/trunk/gui/browser.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Tue Apr 4 14:18:03 CEST 2006
Revision: 21601
Author: fingolfin
Date: 2006-04-04 14:16:53 -0700 (Tue, 04 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=21601&view=rev
Log Message:
-----------
Use iterator API to iterate over all entries in the file list
Modified Paths:
--------------
scummvm/trunk/gui/browser.cpp
Modified: scummvm/trunk/gui/browser.cpp
===================================================================
--- scummvm/trunk/gui/browser.cpp 2006-04-04 21:03:17 UTC (rev 21600)
+++ scummvm/trunk/gui/browser.cpp 2006-04-04 21:16:53 UTC (rev 21601)
@@ -229,12 +229,11 @@
// Populate the ListWidget
Common::StringList list;
- int size = _nodeContent.size();
- for (int i = 0; i < size; i++) {
- if (!_isDirBrowser && _nodeContent[i].isDirectory())
- list.push_back(_nodeContent[i].displayName() + "/");
+ for (FSList::iterator i = _nodeContent.begin(); i != _nodeContent.end(); ++i) {
+ if (!_isDirBrowser && i->isDirectory())
+ list.push_back(i->displayName() + "/");
else
- list.push_back(_nodeContent[i].displayName());
+ list.push_back(i->displayName());
}
_fileList->setList(list);
_fileList->scrollTo(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list