diff options
author | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-08-20 19:37:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-20 19:37:29 +0200 |
commit | ae9b5e00989756bb676429530dfe81039009001c (patch) | |
tree | 119c9ac4b886c24d42f418e21e4175a942eb95ff /src/guiPasswordChange.cpp | |
parent | c8d3d1133945138108aa195e6b3c93b07c6e4fa0 (diff) | |
download | minetest-ae9b5e00989756bb676429530dfe81039009001c.tar.gz minetest-ae9b5e00989756bb676429530dfe81039009001c.tar.bz2 minetest-ae9b5e00989756bb676429530dfe81039009001c.zip |
Modernize code: very last fixes (#6290)
Last modernization fixes
Diffstat (limited to 'src/guiPasswordChange.cpp')
-rw-r--r-- | src/guiPasswordChange.cpp | 11 |
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) |