diff options
author | Max Horn | 2006-04-04 21:16:53 +0000 |
---|---|---|
committer | Max Horn | 2006-04-04 21:16:53 +0000 |
commit | 77555809b68d0bf30f5faecbd86458e3566a703e (patch) | |
tree | 65a947893aa185988a06719dea6026dfbff7d53c /gui | |
parent | ac9203415e263f92ea8043eed2301375b806262e (diff) | |
download | scummvm-rg350-77555809b68d0bf30f5faecbd86458e3566a703e.tar.gz scummvm-rg350-77555809b68d0bf30f5faecbd86458e3566a703e.tar.bz2 scummvm-rg350-77555809b68d0bf30f5faecbd86458e3566a703e.zip |
Use iterator API to iterate over all entries in the file list
svn-id: r21601
Diffstat (limited to 'gui')
-rw-r--r-- | gui/browser.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp index fc605e4080..8c32502948 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -229,12 +229,11 @@ void BrowserDialog::updateListing() { // 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); |