Skip to content
Snippets Groups Projects
Commit e32d8ea8 authored by Beat Küng's avatar Beat Küng
Browse files

ModuleParams: add setParent() method

parent 408cfd6c
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,15 @@ class ModuleParams : public ListNode<ModuleParams *>
public:
ModuleParams(ModuleParams *parent)
{
setParent(parent);
}
/**
* Set the parent module. This is typically not required, only in cases where
* the parent cannot be set via constructor.
*/
void setParent(ModuleParams *parent)
{
if (parent) {
parent->_children.add(this);
......
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