Skip to content

Commit 6070122

Browse files
damienmarchaljnbrunet
authored andcommitted
[SofaPython3] Use std::move in Binding_Node.cpp (as suggested by linter)
1 parent 78afc66 commit 6070122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,12 @@ std::string getLinkPath(Node* node){
132132

133133
py_shared_ptr<Node> __init__noname() {
134134
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>("unnamed");
135-
return dag_node;
135+
return std::move(dag_node);
136136
}
137137

138138
py_shared_ptr<Node> __init__(const std::string& name) {
139139
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>(name);
140-
return dag_node;
140+
return std::move(dag_node);
141141
}
142142

143143
/// Method: init (beware this is not the python __init__, this is sofa's init())

0 commit comments

Comments
 (0)