aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Snover2017-09-06 16:18:14 -0500
committerColin Snover2017-09-08 16:02:32 -0500
commit5bc4b46aa56a37fd1539a5f74a06792d803284b1 (patch)
treeb96851ffc0269d4389c5548a0db9b130d9d6da16
parentb5e801379f5123dfd8195ac3c4b7a8ba4168a458 (diff)
downloadscummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.tar.gz
scummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.tar.bz2
scummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.zip
COMMON: Add comparator for sorting ArchiveMemberList
-rw-r--r--common/archive.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/archive.h b/common/archive.h
index 9293b937af..d76d0c4966 100644
--- a/common/archive.h
+++ b/common/archive.h
@@ -53,6 +53,12 @@ public:
typedef SharedPtr<ArchiveMember> ArchiveMemberPtr;
typedef List<ArchiveMemberPtr> ArchiveMemberList;
+struct ArchiveMemberListComparator {
+ bool operator()(const ArchiveMemberPtr &a, const ArchiveMemberPtr &b) {
+ return a->getName() < b->getName();
+ }
+};
+
class Archive;
/**