MCPcopy Create free account
hub / github.com/Axosoft/nsfw / pullChild

Method pullChild

src/linux/InotifyTree.cpp:503–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503InotifyTree::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
515void InotifyTree::InotifyNode::takeChildAsName(InotifyNode *child, std::string name) {
516 (*mChildren)[name] = child;

Callers 1

renameDirectoryMethod · 0.80

Calls 1

setParentMethod · 0.80

Tested by

no test coverage detected