summaryrefslogtreecommitdiffstats
path: root/libmultimc/src/instversion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libmultimc/src/instversion.cpp')
-rw-r--r--libmultimc/src/instversion.cpp10
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;