summaryrefslogtreecommitdiff
path: root/launcher/java/JavaInstall.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/java/JavaInstall.cpp')
-rw-r--r--launcher/java/JavaInstall.cpp33
1 files changed, 16 insertions, 17 deletions
diff --git a/launcher/java/JavaInstall.cpp b/launcher/java/JavaInstall.cpp
index ededf58382..f5522a9621 100644
--- a/launcher/java/JavaInstall.cpp
+++ b/launcher/java/JavaInstall.cpp
@@ -22,28 +22,27 @@
#include "JavaInstall.h"
#include <MMCStrings.h>
-bool JavaInstall::operator<(const JavaInstall &rhs)
+bool JavaInstall::operator<(const JavaInstall& rhs)
{
- auto archCompare = Strings::naturalCompare(arch, rhs.arch, Qt::CaseInsensitive);
- if(archCompare != 0)
- return archCompare < 0;
- if(id < rhs.id)
- {
- return true;
- }
- if(id > rhs.id)
- {
- return false;
- }
- return Strings::naturalCompare(path, rhs.path, Qt::CaseInsensitive) < 0;
+ auto archCompare =
+ Strings::naturalCompare(arch, rhs.arch, Qt::CaseInsensitive);
+ if (archCompare != 0)
+ return archCompare < 0;
+ if (id < rhs.id) {
+ return true;
+ }
+ if (id > rhs.id) {
+ return false;
+ }
+ return Strings::naturalCompare(path, rhs.path, Qt::CaseInsensitive) < 0;
}
-bool JavaInstall::operator==(const JavaInstall &rhs)
+bool JavaInstall::operator==(const JavaInstall& rhs)
{
- return arch == rhs.arch && id == rhs.id && path == rhs.path;
+ return arch == rhs.arch && id == rhs.id && path == rhs.path;
}
-bool JavaInstall::operator>(const JavaInstall &rhs)
+bool JavaInstall::operator>(const JavaInstall& rhs)
{
- return (!operator<(rhs)) && (!operator==(rhs));
+ return (!operator<(rhs)) && (!operator==(rhs));
}