MCPcopy Create free account
hub / github.com/MyGUI/mygui / removeChild

Method removeChild

UnitTests/TestApp/Data.cpp:77–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75 }
76
77 void Data::removeChild(Data* _child)
78 {
79 MYGUI_ASSERT(_child->getParent() == this, "Child not found");
80
81 mChilds.erase(std::remove(mChilds.begin(), mChilds.end(), _child), mChilds.end());
82 _child->mParent = nullptr;
83 }
84
85 const std::string& Data::getPropertyValue(std::string_view _name) const
86 {

Callers 3

undoActionMethod · 0.45
clearMethod · 0.45
doActionMethod · 0.45

Calls 4

getParentMethod · 0.45
eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected