Cleanup: Use transparent functor

Resolves modernize-use-transparent-functors Clang-Tidy warning.

Differential Revision: https://developer.blender.org/D10323
This commit is contained in:
Sergey Sharybin 2021-02-05 14:18:46 +01:00
parent 4d39a0f8eb
commit 56903024dc
2 changed files with 1 additions and 2 deletions

View File

@ -41,7 +41,6 @@ Checks: >
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-avoid-bind,
-modernize-use-transparent-functors,
WarningsAsErrors: '*'
CheckOptions:

View File

@ -446,7 +446,7 @@ int BLI_string_search_query(StringSearch *search, const char *query, void ***r_d
for (const int score : result_indices_by_score.keys()) {
found_scores.append(score);
}
std::sort(found_scores.begin(), found_scores.end(), std::greater<int>());
std::sort(found_scores.begin(), found_scores.end(), std::greater<>());
/* Add results to output vector in correct order. First come the results with the best match
* score. Results with the same score are in the order they have been added to the search. */