diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-30 09:19:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-30 09:19:19 +0300 |
commit | 93eb460dd0aca4de33bf780de76eee319c224bae (patch) | |
tree | 8ee44df80044964ee00bb1217d00623fd928d891 /source/blender/nodes/NOD_node_tree_multi_function.hh | |
parent | f81a6a2ff1dc34bbffd6ed34cfc49646e1bfc5f9 (diff) |
Cleanup: clang-format (re-run after v12 version bump)
Diffstat (limited to 'source/blender/nodes/NOD_node_tree_multi_function.hh')
-rw-r--r-- | source/blender/nodes/NOD_node_tree_multi_function.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/nodes/NOD_node_tree_multi_function.hh b/source/blender/nodes/NOD_node_tree_multi_function.hh index e3f31e011e4..7eeeaef0b98 100644 --- a/source/blender/nodes/NOD_node_tree_multi_function.hh +++ b/source/blender/nodes/NOD_node_tree_multi_function.hh @@ -233,7 +233,7 @@ class MFNetworkBuilderBase { /** * Constructs a new function that will live at least as long as the MFNetwork. */ - template<typename T, typename... Args> T &construct_fn(Args &&... args) + template<typename T, typename... Args> T &construct_fn(Args &&...args) { BLI_STATIC_ASSERT((std::is_base_of_v<fn::MultiFunction, T>), ""); void *buffer = common_.scope.linear_allocator().allocate(sizeof(T), alignof(T)); @@ -287,7 +287,7 @@ class SocketMFNetworkBuilder : public MFNetworkBuilderBase { this->construct_generator_fn<fn::CustomMF_GenericConstant>(type, value); } - template<typename T, typename... Args> void construct_generator_fn(Args &&... args) + template<typename T, typename... Args> void construct_generator_fn(Args &&...args) { const fn::MultiFunction &fn = this->construct_fn<T>(std::forward<Args>(args)...); this->set_generator_fn(fn); @@ -334,7 +334,7 @@ class NodeMFNetworkBuilder : public MFNetworkBuilderBase { * Tells the builder to build a function that corresponds to the node that is being built. It * will try to match up sockets. */ - template<typename T, typename... Args> T &construct_and_set_matching_fn(Args &&... args) + template<typename T, typename... Args> T &construct_and_set_matching_fn(Args &&...args) { T &function = this->construct_fn<T>(std::forward<Args>(args)...); this->set_matching_fn(function); |