aboutsummaryrefslogtreecommitdiff
path: root/src/gui/guiConfirmRegistration.cpp
diff options
context:
space:
mode:
authorparadust7 <102263465+paradust7@users.noreply.github.com>2022-05-21 15:11:59 -0700
committerGitHub <noreply@github.com>2022-05-22 00:11:59 +0200
commit9f338f5a56e5adee3d11d59827f7e2b8a714e6c2 (patch)
treea16861160b117c68078c686a02cd5aca6385c66d /src/gui/guiConfirmRegistration.cpp
parent2742fef458c3626476193c9e2d1b9231e042e420 (diff)
downloadminetest-9f338f5a56e5adee3d11d59827f7e2b8a714e6c2.tar.gz
minetest-9f338f5a56e5adee3d11d59827f7e2b8a714e6c2.tar.bz2
minetest-9f338f5a56e5adee3d11d59827f7e2b8a714e6c2.zip
Replace all uses of core::list with std::list (#12313)
Diffstat (limited to 'src/gui/guiConfirmRegistration.cpp')
-rw-r--r--src/gui/guiConfirmRegistration.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/gui/guiConfirmRegistration.cpp b/src/gui/guiConfirmRegistration.cpp
index b8887a4af..c5aa9c85e 100644
--- a/src/gui/guiConfirmRegistration.cpp
+++ b/src/gui/guiConfirmRegistration.cpp
@@ -54,25 +54,10 @@ GUIConfirmRegistration::GUIConfirmRegistration(gui::IGUIEnvironment *env,
#endif
}
-GUIConfirmRegistration::~GUIConfirmRegistration()
-{
- removeChildren();
-}
-
-void GUIConfirmRegistration::removeChildren()
-{
- const core::list<gui::IGUIElement *> &children = getChildren();
- core::list<gui::IGUIElement *> children_copy;
- for (gui::IGUIElement *i : children)
- children_copy.push_back(i);
- for (gui::IGUIElement *i : children_copy)
- i->remove();
-}
-
void GUIConfirmRegistration::regenerateGui(v2u32 screensize)
{
acceptInput();
- removeChildren();
+ removeAllChildren();
/*
Calculate new sizes and positions