MCPcopy Create free account
hub / github.com/MyGUI/mygui / ~GenericNode

Method ~GenericNode

UnitTests/UnitTest_TreeControl/GenericNode.h:75–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73
74 template<class NODE, class OWNER>
75 GenericNode<NODE, OWNER>::~GenericNode()
76 {
77 if (mpParent)
78 mpParent->remove(static_cast<NODE*>(this), false);
79
80 while (!mChildren.empty())
81 {
82 NODE* pChild = mChildren.back();
83 mChildren.pop_back();
84
85 pChild->mpParent = nullptr;
86 delete pChild;
87 }
88
89 invalidate();
90 }
91
92 template<class NODE, class OWNER>
93 void GenericNode<NODE, OWNER>::setText(const UString& strText)

Callers

nothing calls this directly

Calls 2

removeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected