Skip to content
Snippets Groups Projects
Commit a0ba566d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

clang-format

parent 1246a344
No related branches found
No related tags found
No related merge requests found
...@@ -64,13 +64,12 @@ std::vector<const INode*> INode::progeny() const { ...@@ -64,13 +64,12 @@ std::vector<const INode*> INode::progeny() const {
std::vector<const INode*> result; std::vector<const INode*> result;
result.push_back(this); result.push_back(this);
for (const auto* child : getChildren()) { for (const auto* child : getChildren()) {
for (const auto* p: child->progeny()) for (const auto* p : child->progeny())
result.push_back(p); result.push_back(p);
} }
return result; return result;
} }
void INode::setParent(const INode* newParent) { void INode::setParent(const INode* newParent) {
m_parent = newParent; m_parent = newParent;
} }
...@@ -116,7 +115,7 @@ std::string INode::displayName() const { ...@@ -116,7 +115,7 @@ std::string INode::displayName() const {
ParameterPool* INode::createParameterTree() const { ParameterPool* INode::createParameterTree() const {
std::unique_ptr<ParameterPool> result(new ParameterPool); std::unique_ptr<ParameterPool> result(new ParameterPool);
for (const INode* child: progeny()) { for (const INode* child : progeny()) {
const std::string path = NodeUtils::nodePath(*child, this->parent()) + "/"; const std::string path = NodeUtils::nodePath(*child, this->parent()) + "/";
child->parameterPool()->copyToExternalPool(path, result.get()); child->parameterPool()->copyToExternalPool(path, result.get());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment