MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ClearList

Method ClearList

editor/TableManage.cpp:81–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79GenericPageList::~GenericPageList() { ClearList(); }
80
81void GenericPageList::ClearList(void) {
82 GenericPageNode *temp, *node;
83
84 node = m_head;
85 while (node != NULL) {
86 temp = node;
87 node = node->next;
88 delete temp;
89 }
90 m_size = 0;
91 m_head = NULL;
92 m_tail = NULL;
93 m_TableFilename = "";
94 m_TableLoaded = FALSE;
95 m_TableModified = FALSE;
96 m_SelectedNode = NULL;
97 m_SelectedIndex = 0;
98}
99
100// Adds the node to the list in ascending alphabetical order
101// according to the page names of the nodes

Callers 3

OnFileNewMethod · 0.45
OnFileLoadMethod · 0.45
OnTableEditFileLoadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected