Remove core::list and replace uses with std::list (#105)

This commit is contained in:
paradust7
2022-05-21 15:00:32 -07:00
committed by GitHub
parent 3e81f38098
commit 128cf1696c
15 changed files with 200 additions and 694 deletions

View File

@ -387,11 +387,7 @@ void CGUIEnvironment::clear()
HoveredNoSubelement = 0;
}
// get the root's children in case the root changes in future
const core::list<IGUIElement*>& children = getRootGUIElement()->getChildren();
while (!children.empty())
(*children.getLast())->remove();
getRootGUIElement()->removeAllChildren();
}