aboutsummaryrefslogtreecommitdiff
path: root/src/guiPasswordChange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guiPasswordChange.cpp')
-rw-r--r--src/guiPasswordChange.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/guiPasswordChange.cpp b/src/guiPasswordChange.cpp
index 69db4e6b2..46de2026c 100644
--- a/src/guiPasswordChange.cpp
+++ b/src/guiPasswordChange.cpp
@@ -52,13 +52,12 @@ void GUIPasswordChange::removeChildren()
{
const core::list<gui::IGUIElement *> &children = getChildren();
core::list<gui::IGUIElement *> children_copy;
- for (core::list<gui::IGUIElement *>::ConstIterator i = children.begin();
- i != children.end(); i++) {
- children_copy.push_back(*i);
+ for (gui::IGUIElement *i : children) {
+ children_copy.push_back(i);
}
- for (core::list<gui::IGUIElement *>::Iterator i = children_copy.begin();
- i != children_copy.end(); i++) {
- (*i)->remove();
+
+ for (gui::IGUIElement *i : children_copy) {
+ i->remove();
}
}
void GUIPasswordChange::regenerateGui(v2u32 screensize)