Add clang-tidy modernize-use-transparent-functors check

This commit is contained in:
Chris Thrasher 2023-01-15 12:14:28 -07:00
parent a9bc4aa576
commit 18e8d339e2
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -60,7 +60,7 @@ const std::vector<VideoMode>& VideoMode::getFullscreenModes()
static const auto modes = []
{
std::vector<VideoMode> result = priv::VideoModeImpl::getFullscreenModes();
std::sort(result.begin(), result.end(), std::greater<VideoMode>());
std::sort(result.begin(), result.end(), std::greater<>());
return result;
}();