| 501 | } |
| 502 | |
| 503 | InotifyTree::InotifyNode *InotifyTree::InotifyNode::pullChild(std::string name) { |
| 504 | auto child = mChildren->find(name); |
| 505 | if (child == mChildren->end()) { |
| 506 | return NULL; |
| 507 | } |
| 508 | |
| 509 | auto node = child->second; |
| 510 | node->setParent(NULL); |
| 511 | mChildren->erase(child); |
| 512 | return node; |
| 513 | } |
| 514 | |
| 515 | void InotifyTree::InotifyNode::takeChildAsName(InotifyNode *child, std::string name) { |
| 516 | (*mChildren)[name] = child; |
no test coverage detected