I *love* windows.....

This commit is contained in:
Phillip Stephens 2022-01-08 18:12:36 -08:00
parent 989c267dce
commit a5e204afe4
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 2 additions and 2 deletions

View File

@ -161,10 +161,10 @@ std::optional<std::string> FindBlender(int& major, int& minor) {
} }
bool IsVersionSupported(int major, int minor) { bool IsVersionSupported(int major, int minor) {
const auto* it = auto it =
std::find_if(SupportedVersions.cbegin(), SupportedVersions.cend(), std::find_if(SupportedVersions.cbegin(), SupportedVersions.cend(),
[&major, &minor](const auto& version) { return version.Major == major && version.Minor == minor; }); [&major, &minor](const auto& version) { return version.Major == major && version.Minor == minor; });
return it != nullptr; return it != SupportedVersions.cend();
} }
std::pair<uint32_t, uint32_t> GetLatestSupportedVersion() { std::pair<uint32_t, uint32_t> GetLatestSupportedVersion() {