Cleanup: Use lambda instead of function bind

More detailed explanation why it is a preferred way of coding
nowadays can be found at

https://clang.llvm.org/extra/clang-tidy/checks/modernize-avoid-bind.html

Resolves modernize-avoid-bind Clang-Tidy warning.

Differential Revision: https://developer.blender.org/D10320
This commit is contained in:
Sergey Sharybin
2021-02-05 11:41:32 +01:00
parent a0867f05a4
commit 5ec4ba8080
5 changed files with 255 additions and 177 deletions

View File

@@ -40,7 +40,6 @@ Checks: >
-modernize-loop-convert,
-modernize-pass-by-value,
-modernize-raw-string-literal,
-modernize-avoid-bind,
WarningsAsErrors: '*'
CheckOptions: