diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/depsgraph/intern/node/deg_node_factory_impl.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/depsgraph/intern/node/deg_node_factory_impl.h')
-rw-r--r-- | source/blender/depsgraph/intern/node/deg_node_factory_impl.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/source/blender/depsgraph/intern/node/deg_node_factory_impl.h b/source/blender/depsgraph/intern/node/deg_node_factory_impl.h index f2d478d4c16..ad25ffdf26c 100644 --- a/source/blender/depsgraph/intern/node/deg_node_factory_impl.h +++ b/source/blender/depsgraph/intern/node/deg_node_factory_impl.h @@ -29,38 +29,38 @@ struct ID; namespace DEG { -template <class ModeObjectType> -NodeType DepsNodeFactoryImpl<ModeObjectType>::type() const +template<class ModeObjectType> NodeType DepsNodeFactoryImpl<ModeObjectType>::type() const { - return ModeObjectType::typeinfo.type; + return ModeObjectType::typeinfo.type; } -template <class ModeObjectType> -const char *DepsNodeFactoryImpl<ModeObjectType>::type_name() const { - return ModeObjectType::typeinfo.type_name; +template<class ModeObjectType> const char *DepsNodeFactoryImpl<ModeObjectType>::type_name() const +{ + return ModeObjectType::typeinfo.type_name; } -template <class ModeObjectType> -int DepsNodeFactoryImpl<ModeObjectType>::id_recalc_tag() const { - return ModeObjectType::typeinfo.id_recalc_tag; +template<class ModeObjectType> int DepsNodeFactoryImpl<ModeObjectType>::id_recalc_tag() const +{ + return ModeObjectType::typeinfo.id_recalc_tag; } -template <class ModeObjectType> -Node *DepsNodeFactoryImpl<ModeObjectType>::create_node( - const ID *id, const char *subdata, const char *name) const +template<class ModeObjectType> +Node *DepsNodeFactoryImpl<ModeObjectType>::create_node(const ID *id, + const char *subdata, + const char *name) const { - Node *node = OBJECT_GUARDED_NEW(ModeObjectType); - /* Populate base node settings. */ - node->type = type(); - /* Set name if provided, or use default type name. */ - if (name[0] != '\0') { - node->name = name; - } - else { - node->name = type_name(); - } - node->init(id, subdata); - return node; + Node *node = OBJECT_GUARDED_NEW(ModeObjectType); + /* Populate base node settings. */ + node->type = type(); + /* Set name if provided, or use default type name. */ + if (name[0] != '\0') { + node->name = name; + } + else { + node->name = type_name(); + } + node->init(id, subdata); + return node; } } // namespace DEG |