aboutsummaryrefslogtreecommitdiff
path: root/gui/browser.cpp
diff options
context:
space:
mode:
authorMax Horn2006-04-04 23:55:47 +0000
committerMax Horn2006-04-04 23:55:47 +0000
commitbec09d30945c7dc143dc4ccd5e2fba1dcaccaac1 (patch)
treeae23245d53ee0b48082405b7d9409854423a3610 /gui/browser.cpp
parent66d8b85463da60f0b88c3f7d6068df502d940546 (diff)
downloadscummvm-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.cpp3
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;