mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
Add clang-tidy modernize-use-transparent-functors check
This commit is contained in:
parent
a9bc4aa576
commit
18e8d339e2
@ -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,
|
||||
|
@ -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;
|
||||
}();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user