Cleanup: Line wrapping

This commit is contained in:
Sergey Sharybin 2019-02-15 16:00:54 +01:00
parent bcc619532f
commit 512bbf3748
2 changed files with 4 additions and 8 deletions

View File

@ -187,15 +187,13 @@ string IDNode::identifier() const
: "false") + ")";
}
ComponentNode *IDNode::find_component(NodeType type,
const char *name) const
ComponentNode *IDNode::find_component(NodeType type, const char *name) const
{
ComponentIDKey key(type, name);
return reinterpret_cast<ComponentNode *>(BLI_ghash_lookup(components, &key));
}
ComponentNode *IDNode::add_component(NodeType type,
const char *name)
ComponentNode *IDNode::add_component(NodeType type, const char *name)
{
ComponentNode *comp_node = find_component(type, name);
if (!comp_node) {

View File

@ -60,10 +60,8 @@ struct IDNode : public Node {
virtual string identifier() const override;
ComponentNode *find_component(NodeType type,
const char *name = "") const;
ComponentNode *add_component(NodeType type,
const char *name = "");
ComponentNode *find_component(NodeType type, const char *name = "") const;
ComponentNode *add_component(NodeType type, const char *name = "");
virtual void tag_update(Depsgraph *graph, eUpdateSource source) override;