mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-09 18:50:39 +02:00
add initial bulk run from pre-commit over all files
This commit is contained in:
parent
665aeeef61
commit
93356b39c3
418 changed files with 21354 additions and 23858 deletions
|
@ -67,38 +67,32 @@ bool Version::is_valid() const { return major >= 0; }
|
|||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator<(const Version &other) const {
|
||||
return std::tie(major, minor, patch) <
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) < std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator<=(const Version &other) const {
|
||||
return std::tie(major, minor, patch) <=
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) <= std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator>(const Version &other) const {
|
||||
return std::tie(major, minor, patch) >
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) > std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator>=(const Version &other) const {
|
||||
return std::tie(major, minor, patch) >=
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) >= std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator==(const Version &other) const {
|
||||
return std::tie(major, minor, patch) ==
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) == std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
bool Version::operator!=(const Version &other) const {
|
||||
return std::tie(major, minor, patch) !=
|
||||
std::tie(other.major, other.minor, other.patch);
|
||||
return std::tie(major, minor, patch) != std::tie(other.major, other.minor, other.patch);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue