diff --git a/.clang-tidy b/.clang-tidy index f4289b8a7..eb649f973 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -9,6 +9,7 @@ Checks: > modernize-use-equals-delete, modernize-use-nullptr, modernize-use-override, + modernize-use-transparent-functors, portability-*, readability-container-size-empty, readability-identifier-naming, diff --git a/src/SFML/Window/VideoMode.cpp b/src/SFML/Window/VideoMode.cpp index 510b28330..5f48ac94e 100644 --- a/src/SFML/Window/VideoMode.cpp +++ b/src/SFML/Window/VideoMode.cpp @@ -60,7 +60,7 @@ const std::vector& VideoMode::getFullscreenModes() static const auto modes = [] { std::vector result = priv::VideoModeImpl::getFullscreenModes(); - std::sort(result.begin(), result.end(), std::greater()); + std::sort(result.begin(), result.end(), std::greater<>()); return result; }();