[Bf-blender-cvs] [56903024dcc] master: Cleanup: Use transparent functor
Sergey Sharybin
noreply at git.blender.org
Fri Feb 5 15:40:00 CET 2021
Commit: 56903024dccd0e5ae4fae40925348416f989144b
Author: Sergey Sharybin
Date: Fri Feb 5 14:18:46 2021 +0100
Branches: master
https://developer.blender.org/rB56903024dccd0e5ae4fae40925348416f989144b
Cleanup: Use transparent functor
Resolves modernize-use-transparent-functors Clang-Tidy warning.
Differential Revision: https://developer.blender.org/D10323
===================================================================
M .clang-tidy
M source/blender/blenlib/intern/string_search.cc
===================================================================
diff --git a/.clang-tidy b/.clang-tidy
index d06c7471323..b52d0f9ba46 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -41,7 +41,6 @@ Checks: >
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-avoid-bind,
- -modernize-use-transparent-functors,
WarningsAsErrors: '*'
CheckOptions:
diff --git a/source/blender/blenlib/intern/string_search.cc b/source/blender/blenlib/intern/string_search.cc
index d64587b85b4..a5983967542 100644
--- a/source/blender/blenlib/intern/string_search.cc
+++ b/source/blender/blenlib/intern/string_search.cc
@@ -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. */
More information about the Bf-blender-cvs
mailing list