diff --git a/src/backend/helpers/version.cpp b/src/backend/helpers/version.cpp index bb022f4e..29ac2ce1 100644 --- a/src/backend/helpers/version.cpp +++ b/src/backend/helpers/version.cpp @@ -138,22 +138,22 @@ namespace loot { } bool Version::operator > (const Version& ver) const { - return (*this != ver && !(*this < ver)); + return ver < *this; } bool Version::operator >= (const Version& ver) const { - return (*this == ver || *this > ver); + return ver < *this || !(*this < ver); } bool Version::operator <= (const Version& ver) const { - return (*this == ver || *this < ver); + return *this < ver || !(ver < *this); } bool Version::operator == (const Version& ver) const { - return (verString == ver.AsString()); + return !(*this < ver) && !(ver < *this); } bool Version::operator != (const Version& ver) const { - return !(*this == ver); - } + return *this < ver || ver < *this; } +}