Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2021-02-05 13:41:32 +0300
committerSergey Sharybin <sergey@blender.org>2021-02-05 18:43:23 +0300
commit5ec4ba8080d1c6f27093b242603a7f8f2783deef (patch)
tree30f2800615e8e21f8a141f25a32b76b8a29fde96 /source/blender/blenlib
parenta0867f05a48e2017a3b634cda5471c015af5bf35 (diff)
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
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/task_graph.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/task_graph.cc b/source/blender/blenlib/intern/task_graph.cc
index 4f112c5b2c8..5b804cd1df8 100644
--- a/source/blender/blenlib/intern/task_graph.cc
+++ b/source/blender/blenlib/intern/task_graph.cc
@@ -70,7 +70,7 @@ struct TaskNode {
#ifdef WITH_TBB
tbb_node(task_graph->tbb_graph,
tbb::flow::unlimited,
- std::bind(&TaskNode::run, this, std::placeholders::_1)),
+ [&](const tbb::flow::continue_msg input) { run(input); }),
#endif
run_func(run_func),
task_data(task_data),