diff options
author | Max Horn | 2006-04-04 23:55:47 +0000 |
---|---|---|
committer | Max Horn | 2006-04-04 23:55:47 +0000 |
commit | bec09d30945c7dc143dc4ccd5e2fba1dcaccaac1 (patch) | |
tree | ae23245d53ee0b48082405b7d9409854423a3610 /gui/browser.cpp | |
parent | 66d8b85463da60f0b88c3f7d6068df502d940546 (diff) | |
download | scummvm-rg350-bec09d30945c7dc143dc4ccd5e2fba1dcaccaac1.tar.gz scummvm-rg350-bec09d30945c7dc143dc4ccd5e2fba1dcaccaac1.tar.bz2 scummvm-rg350-bec09d30945c7dc143dc4ccd5e2fba1dcaccaac1.zip |
Turned FSList::sort into a generic function which can be applied to anything which implements comparable iterators (like Array, List, or plain C arrays)
svn-id: r21617
Diffstat (limited to 'gui/browser.cpp')
-rw-r--r-- | gui/browser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/browser.cpp b/gui/browser.cpp index 8c32502948..5876124c47 100644 --- a/gui/browser.cpp +++ b/gui/browser.cpp @@ -27,6 +27,7 @@ #include "backends/fs/fs.h" #include "common/system.h" +#include "common/func.h" namespace GUI { @@ -225,7 +226,7 @@ void BrowserDialog::updateListing() { _nodeContent = _node.listDir(AbstractFilesystemNode::kListDirectoriesOnly); else _nodeContent = _node.listDir(AbstractFilesystemNode::kListAll); - _nodeContent.sort(); + Common::sort(_nodeContent.begin(), _nodeContent.end()); // Populate the ListWidget Common::StringList list; |