MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / operator<

Method operator<

launcher/java/JavaInstall.cpp:24–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include "StringUtils.h"
23
24bool JavaInstall::operator<(const JavaInstall& rhs) const
25{
26 auto archCompare = StringUtils::naturalCompare(arch, rhs.arch, Qt::CaseInsensitive);
27 if (archCompare != 0)
28 return archCompare < 0;
29 if (id < rhs.id) {
30 return true;
31 }
32 if (id > rhs.id) {
33 return false;
34 }
35 return StringUtils::naturalCompare(path, rhs.path, Qt::CaseInsensitive) < 0;
36}
37
38bool JavaInstall::operator==(const JavaInstall& rhs) const
39{

Callers

nothing calls this directly

Calls 1

operator<Function · 0.85

Tested by

no test coverage detected