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

Method operator<

launcher/java/JavaMetadata.cpp:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81bool Metadata::operator<(const Metadata& rhs) const
82{
83 auto id = version;
84 if (id < rhs.version) {
85 return true;
86 }
87 if (id > rhs.version) {
88 return false;
89 }
90 auto date = releaseTime;
91 if (date < rhs.releaseTime) {
92 return true;
93 }
94 if (date > rhs.releaseTime) {
95 return false;
96 }
97 return StringUtils::naturalCompare(m_name, rhs.m_name, Qt::CaseInsensitive) < 0;
98}
99
100bool Metadata::operator==(const Metadata& rhs) const
101{

Callers

nothing calls this directly

Calls 1

operator<Function · 0.85

Tested by

no test coverage detected