diff options
author | Colin Snover | 2017-09-06 16:18:14 -0500 |
---|---|---|
committer | Colin Snover | 2017-09-08 16:02:32 -0500 |
commit | 5bc4b46aa56a37fd1539a5f74a06792d803284b1 (patch) | |
tree | b96851ffc0269d4389c5548a0db9b130d9d6da16 | |
parent | b5e801379f5123dfd8195ac3c4b7a8ba4168a458 (diff) | |
download | scummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.tar.gz scummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.tar.bz2 scummvm-rg350-5bc4b46aa56a37fd1539a5f74a06792d803284b1.zip |
COMMON: Add comparator for sorting ArchiveMemberList
-rw-r--r-- | common/archive.h | 6 |
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; /** |