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

Method clear

UnitTests/TestApp/DataManager.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void DataManager::clear()
50 {
51 while (!mRoot->getChilds().empty())
52 {
53 Data* child = mRoot->getChilds().back();
54 mRoot->removeChild(child);
55 delete child;
56 }
57 }
58
59 Data* DataManager::getRoot()
60 {

Callers

nothing calls this directly

Calls 2

emptyMethod · 0.45
removeChildMethod · 0.45

Tested by

no test coverage detected