diff --git a/Source/Core/Core/CheatSearch.cpp b/Source/Core/Core/CheatSearch.cpp index 2f75998ae8..bf60485416 100644 --- a/Source/Core/Core/CheatSearch.cpp +++ b/Source/Core/Core/CheatSearch.cpp @@ -424,17 +424,17 @@ MakeCompareFunctionForLastValue(Cheats::CompareType op) switch (op) { case Cheats::CompareType::Equal: - return [](const T& new_value, const T& old_value) { return new_value == old_value; }; + return std::equal_to(); case Cheats::CompareType::NotEqual: - return [](const T& new_value, const T& old_value) { return new_value != old_value; }; + return std::not_equal_to(); case Cheats::CompareType::Less: - return [](const T& new_value, const T& old_value) { return new_value < old_value; }; + return std::less(); case Cheats::CompareType::LessOrEqual: - return [](const T& new_value, const T& old_value) { return new_value <= old_value; }; + return std::less_equal(); case Cheats::CompareType::Greater: - return [](const T& new_value, const T& old_value) { return new_value > old_value; }; + return std::greater(); case Cheats::CompareType::GreaterOrEqual: - return [](const T& new_value, const T& old_value) { return new_value >= old_value; }; + return std::greater_equal(); default: DEBUG_ASSERT(false); return nullptr;