diff options
author | paradust7 <102263465+paradust7@users.noreply.github.com> | 2022-05-21 15:11:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-22 00:11:59 +0200 |
commit | 9f338f5a56e5adee3d11d59827f7e2b8a714e6c2 (patch) | |
tree | a16861160b117c68078c686a02cd5aca6385c66d /src/gui/guiVolumeChange.cpp | |
parent | 2742fef458c3626476193c9e2d1b9231e042e420 (diff) | |
download | minetest-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/guiVolumeChange.cpp')
-rw-r--r-- | src/gui/guiVolumeChange.cpp | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/gui/guiVolumeChange.cpp b/src/gui/guiVolumeChange.cpp index 61ab758a1..0f6f43fe9 100644 --- a/src/gui/guiVolumeChange.cpp +++ b/src/gui/guiVolumeChange.cpp @@ -45,32 +45,12 @@ GUIVolumeChange::GUIVolumeChange(gui::IGUIEnvironment* env, { } -GUIVolumeChange::~GUIVolumeChange() -{ - removeChildren(); -} - -void GUIVolumeChange::removeChildren() -{ - if (gui::IGUIElement *e = getElementFromId(ID_soundText)) - e->remove(); - - if (gui::IGUIElement *e = getElementFromId(ID_soundExitButton)) - e->remove(); - - if (gui::IGUIElement *e = getElementFromId(ID_soundSlider)) - e->remove(); - - if (gui::IGUIElement *e = getElementFromId(ID_soundMuteButton)) - e->remove(); -} - void GUIVolumeChange::regenerateGui(v2u32 screensize) { /* Remove stuff */ - removeChildren(); + removeAllChildren(); /* Calculate new sizes and positions */ |