aboutsummaryrefslogtreecommitdiff
path: root/launcher/java/JavaInstall.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-07-14 13:31:13 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-07-14 13:31:13 +0300
commitfc4a1ef1935059b3c8e4f5d7bdac9fa2311485ac (patch)
tree2e882303b945ca17b7f5391ae4b09a2ed48da691 /launcher/java/JavaInstall.cpp
parent3becd4386bd49c9c91a72647de10faa16c6d700a (diff)
downloadPrismLauncher-fc4a1ef1935059b3c8e4f5d7bdac9fa2311485ac.tar.gz
PrismLauncher-fc4a1ef1935059b3c8e4f5d7bdac9fa2311485ac.tar.bz2
PrismLauncher-fc4a1ef1935059b3c8e4f5d7bdac9fa2311485ac.zip
format
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/java/JavaInstall.cpp')
-rw-r--r--launcher/java/JavaInstall.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/launcher/java/JavaInstall.cpp b/launcher/java/JavaInstall.cpp
index d5932bcb..f095aa37 100644
--- a/launcher/java/JavaInstall.cpp
+++ b/launcher/java/JavaInstall.cpp
@@ -2,28 +2,26 @@
#include "StringUtils.h"
-bool JavaInstall::operator<(const JavaInstall &rhs)
+bool JavaInstall::operator<(const JavaInstall& rhs)
{
auto archCompare = StringUtils::naturalCompare(arch, rhs.arch, Qt::CaseInsensitive);
- if(archCompare != 0)
+ if (archCompare != 0)
return archCompare < 0;
- if(id < rhs.id)
- {
+ if (id < rhs.id) {
return true;
}
- if(id > rhs.id)
- {
+ if (id > rhs.id) {
return false;
}
return StringUtils::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;
}
-bool JavaInstall::operator>(const JavaInstall &rhs)
+bool JavaInstall::operator>(const JavaInstall& rhs)
{
return (!operator<(rhs)) && (!operator==(rhs));
}