aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/CGUIEnvironment.cpp
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-05-21 15:00:32 -0700
committerGitHub <noreply@github.com>2022-05-22 00:00:32 +0200
commit128cf1696c2803e12ebbdd3ee034e0c9eea90fae (patch)
tree1b9243ae45c0356a61981243fcb9d428b1ceba34 /source/Irrlicht/CGUIEnvironment.cpp
parent3e81f3809806a921a7914f6b9c4b02c8532fbc9f (diff)
downloadirrlicht-128cf1696c2803e12ebbdd3ee034e0c9eea90fae.tar.xz
Remove core::list and replace uses with std::list (#105)
Diffstat (limited to 'source/Irrlicht/CGUIEnvironment.cpp')
-rw-r--r--source/Irrlicht/CGUIEnvironment.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/Irrlicht/CGUIEnvironment.cpp b/source/Irrlicht/CGUIEnvironment.cpp
index 040cbff..0a12af3 100644
--- a/source/Irrlicht/CGUIEnvironment.cpp
+++ b/source/Irrlicht/CGUIEnvironment.cpp
@@ -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();
}