summaryrefslogtreecommitdiff
path: root/launcher/java/JavaInstall.h
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/java/JavaInstall.h')
-rw-r--r--launcher/java/JavaInstall.h65
1 files changed, 32 insertions, 33 deletions
diff --git a/launcher/java/JavaInstall.h b/launcher/java/JavaInstall.h
index 43e6da5858..1d9c481963 100644
--- a/launcher/java/JavaInstall.h
+++ b/launcher/java/JavaInstall.h
@@ -24,39 +24,38 @@
#include "BaseVersion.h"
#include "JavaVersion.h"
-struct JavaInstall : public BaseVersion
-{
- JavaInstall(){}
- JavaInstall(QString id, QString arch, QString path)
- : id(id), arch(arch), path(path)
- {
- }
- virtual QString descriptor()
- {
- return id.toString();
- }
-
- virtual QString name()
- {
- return id.toString();
- }
-
- virtual QString typeString() const
- {
- return arch;
- }
-
- using BaseVersion::operator<;
- using BaseVersion::operator>;
-
- bool operator<(const JavaInstall & rhs);
- bool operator==(const JavaInstall & rhs);
- bool operator>(const JavaInstall & rhs);
-
- JavaVersion id;
- QString arch;
- QString path;
- bool recommended = false;
+struct JavaInstall : public BaseVersion {
+ JavaInstall() {}
+ JavaInstall(QString id, QString arch, QString path)
+ : id(id), arch(arch), path(path)
+ {
+ }
+ virtual QString descriptor()
+ {
+ return id.toString();
+ }
+
+ virtual QString name()
+ {
+ return id.toString();
+ }
+
+ virtual QString typeString() const
+ {
+ return arch;
+ }
+
+ using BaseVersion::operator<;
+ using BaseVersion::operator>;
+
+ bool operator<(const JavaInstall& rhs);
+ bool operator==(const JavaInstall& rhs);
+ bool operator>(const JavaInstall& rhs);
+
+ JavaVersion id;
+ QString arch;
+ QString path;
+ bool recommended = false;
};
typedef std::shared_ptr<JavaInstall> JavaInstallPtr;