#include "nodes.h" #include using namespace std; void Node::addChildren(refptr other) { if (other.isNull()) return; for (typeof(other.m_children)::const_iterator it = other.m_children.begin(); it != other.m_children.end(); it++) { addChild(*it); } }