MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / clearList

Method clearList

src/Interface/TextList.cpp:752–765  ·  view source on GitHub ↗

* Removes all the rows currently stored in the list. */

Source from the content-addressed store, hash-verified

750 * Removes all the rows currently stored in the list.
751 */
752void TextList::clearList()
753{
754 for (std::vector< std::vector<Text*> >::iterator u = _texts.begin(); u < _texts.end(); ++u)
755 {
756 for (std::vector<Text*>::iterator v = u->begin(); v < u->end(); ++v)
757 {
758 delete (*v);
759 }
760 u->clear();
761 }
762 _texts.clear();
763 _rows.clear();
764 _redraw = true;
765}
766
767/**
768 * Scrolls the text in the list up by one row or to the top.

Callers 14

fillProjectListMethod · 0.80
fillProductionListMethod · 0.80
fillProjectListMethod · 0.80
initMethod · 0.80
fillProductionListMethod · 0.80
populateBuildListMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
sortNameClickMethod · 0.80
sortDateClickMethod · 0.80
initMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected