diff options
author | Sergey Sharybin <sergey@blender.org> | 2021-02-05 13:41:32 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2021-02-05 18:43:23 +0300 |
commit | 5ec4ba8080d1c6f27093b242603a7f8f2783deef (patch) | |
tree | 30f2800615e8e21f8a141f25a32b76b8a29fde96 /source/blender/blenlib | |
parent | a0867f05a48e2017a3b634cda5471c015af5bf35 (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.cc | 2 |
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), |