We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78afc66 commit 6070122Copy full SHA for 6070122
bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_Node.cpp
@@ -132,12 +132,12 @@ std::string getLinkPath(Node* node){
132
133
py_shared_ptr<Node> __init__noname() {
134
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>("unnamed");
135
- return dag_node;
+ return std::move(dag_node);
136
}
137
138
py_shared_ptr<Node> __init__(const std::string& name) {
139
auto dag_node = sofa::core::objectmodel::New<sofa::simulation::graph::DAGNode>(name);
140
141
142
143
/// Method: init (beware this is not the python __init__, this is sofa's init())
0 commit comments