summaryrefslogtreecommitdiffstats
path: root/logic/BaseVersion.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-01-16 23:06:07 +0100
committerPetr Mrázek <peterix@gmail.com>2014-01-16 23:06:07 +0100
commit7b96d74d3b197c23324c5a364809a91ea6800e4e (patch)
treedda120a762a8cd3b60ec89467bcd36aef61bf43d /logic/BaseVersion.h
parentd85e820a070ea81ee9b76553c3e35948ef785426 (diff)
downloadMultiMC-7b96d74d3b197c23324c5a364809a91ea6800e4e.tar
MultiMC-7b96d74d3b197c23324c5a364809a91ea6800e4e.tar.gz
MultiMC-7b96d74d3b197c23324c5a364809a91ea6800e4e.tar.lz
MultiMC-7b96d74d3b197c23324c5a364809a91ea6800e4e.tar.xz
MultiMC-7b96d74d3b197c23324c5a364809a91ea6800e4e.zip
Sort forge versions right. Do not spam the multimc log with mc server status stuff.
Diffstat (limited to 'logic/BaseVersion.h')
-rw-r--r--logic/BaseVersion.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/logic/BaseVersion.h b/logic/BaseVersion.h
index 1864c94c..43f5942a 100644
--- a/logic/BaseVersion.h
+++ b/logic/BaseVersion.h
@@ -39,6 +39,15 @@ struct BaseVersion
* the kind of version this is (Stable, Beta, Snapshot, whatever)
*/
virtual QString typeString() const = 0;
+
+ virtual bool operator<(BaseVersion &a)
+ {
+ return name() < a.name();
+ };
+ virtual bool operator>(BaseVersion &a)
+ {
+ return name() > a.name();
+ };
};
typedef std::shared_ptr<BaseVersion> BaseVersionPtr;