| 65 | } |
| 66 | |
| 67 | bool VersionParserService::isVersionOutdated(std::string const& otherVersionString) |
| 68 | { |
| 69 | auto otherParts = getVersionParts(otherVersionString); |
| 70 | auto ownParts = getVersionParts(Const::ProgramVersion); |
| 71 | if (otherParts.major < ownParts.major) { |
| 72 | return true; |
| 73 | } |
| 74 | if (otherParts.major == 4 && otherParts.versionType == VersionType_Alpha && *otherParts.preRelease < 2) { |
| 75 | return true; |
| 76 | } |
| 77 | return false; |
| 78 | } |
| 79 | |
| 80 | bool VersionParserService::isVersionNewer(std::string const& otherVersionString) |
| 81 | { |
no outgoing calls
no test coverage detected