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:
authorJacques Lucke <jacques@blender.org>2021-09-14 17:08:09 +0300
committerJacques Lucke <jacques@blender.org>2021-09-14 17:08:09 +0300
commitdee0b56b9216de8f37589b15be2d21cc1b946773 (patch)
tree986b930459ac12d7230e80afd41476c38d9b5bc3 /source/blender/nodes/NOD_multi_function.hh
parent426e2663a0891d16a497a33b273a5cee1e09f929 (diff)
Cleanup: simplify resource scope methods
Previously, a debug name had to be passed to all methods that added a resource to the `ResourceScope`. The idea was that this would make it easier to find certain bugs. In reality I never found this to be useful, and it was mostly annoying. The thing is, something that is in a resource scope never leaks (unless the resource scope is not destructed of course). Removing the name parameter makes the structure easier to use.
Diffstat (limited to 'source/blender/nodes/NOD_multi_function.hh')
-rw-r--r--source/blender/nodes/NOD_multi_function.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/NOD_multi_function.hh b/source/blender/nodes/NOD_multi_function.hh
index 2f4b104fb4c..58816544dc1 100644
--- a/source/blender/nodes/NOD_multi_function.hh
+++ b/source/blender/nodes/NOD_multi_function.hh
@@ -114,7 +114,7 @@ inline void NodeMultiFunctionBuilder::set_matching_fn(const MultiFunction &fn)
template<typename T, typename... Args>
inline void NodeMultiFunctionBuilder::construct_and_set_matching_fn(Args &&...args)
{
- const T &fn = resource_scope_.construct<T>(__func__, std::forward<Args>(args)...);
+ const T &fn = resource_scope_.construct<T>(std::forward<Args>(args)...);
this->set_matching_fn(&fn);
}