aboutsummaryrefslogtreecommitdiff
path: root/launcher/BaseVersion.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/BaseVersion.h')
-rw-r--r--launcher/BaseVersion.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/launcher/BaseVersion.h b/launcher/BaseVersion.h
index 7bfc51e3..c4c9a1c5 100644
--- a/launcher/BaseVersion.h
+++ b/launcher/BaseVersion.h
@@ -15,16 +15,15 @@
#pragma once
-#include <memory>
-#include <QString>
#include <QMetaType>
+#include <QString>
+#include <memory>
/*!
* An abstract base class for versions.
*/
-class BaseVersion
-{
-public:
+class BaseVersion {
+ public:
using Ptr = std::shared_ptr<BaseVersion>;
virtual ~BaseVersion() {}
/*!
@@ -44,15 +43,8 @@ public:
* 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();
- }
+ virtual bool operator<(BaseVersion& a) { return name() < a.name(); };
+ virtual bool operator>(BaseVersion& a) { return name() > a.name(); };
};
Q_DECLARE_METATYPE(BaseVersion::Ptr)