src/viewer/svmnode.cpp
void SVMenuNode::AddChild(SVMenuNode *svmn) {
  svmn->parent_ = this;
  // No children yet.
  if (child_ == nullptr) {
    child_ = svmn;
  } else {
    SVMenuNode *cur = child_;
    while (cur->next_ != nullptr) {
      cur = cur->next_;
    }
    cur->next_ = svmn;
  }
}
// Add a child node to this menu node.
Add a child node to this menu node.
Add a child node to this menu node .
void SVMenuNode::AddChild(SVMenuNode *svmn) {
  svmn->parent_ = this;
  if (child_ == nullptr) {
    child_ = svmn;
  } else {
    SVMenuNode *cur = child_;
    while (cur->next_ != nullptr) {
      cur = cur->next_;
    }
    cur->next_ = svmn;
  }
}
void SVMenuNode :: AddChild ( SVMenuNode * svmn ) { svmn -> parent_ = this ; if ( child_ == nullptr ) { child_ = svmn ; } else { SVMenuNode * cur = child_ ; while ( cur -> next_ != nullptr ) { cur = cur -> next_ ; } cur -> next_ = svmn ; } }
Add a child node to this menu node.
Add a child node to this menu node .
// No children yet.