diff options
author | Andrew <forkk@forkk.net> | 2013-05-03 20:14:38 -0500 |
---|---|---|
committer | Andrew <forkk@forkk.net> | 2013-05-03 20:14:38 -0500 |
commit | 857a4e4dbed88b647619c213d731dc460d034820 (patch) | |
tree | ddff2ab3d6af3fb049b1931cd8b27cbedd7b6ee3 /libmultimc/src/instversion.cpp | |
parent | 055198303c7bf15f456687838c37650871596946 (diff) | |
download | MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.gz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.lz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.tar.xz MultiMC-857a4e4dbed88b647619c213d731dc460d034820.zip |
Implemented version list sorting.
Resolves MMC-8:
https://jira.forkk.net/browse/MMC-8
Diffstat (limited to 'libmultimc/src/instversion.cpp')
-rw-r--r-- | libmultimc/src/instversion.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libmultimc/src/instversion.cpp b/libmultimc/src/instversion.cpp index d3d078a9..ebd76c7a 100644 --- a/libmultimc/src/instversion.cpp +++ b/libmultimc/src/instversion.cpp @@ -41,6 +41,16 @@ InstVersionList *InstVersion::versionList() const return (InstVersionList *)parent(); } +bool InstVersion::isLessThan(const InstVersion &other) const +{ + return timestamp() < other.timestamp(); +} + +bool InstVersion::isGreaterThan(const InstVersion &other) const +{ + return timestamp() > other.timestamp(); +} + bool InstVersion::isMeta() const { return false; |