summaryrefslogtreecommitdiff
path: root/src/sound_openal.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-08-20 19:37:29 +0200
committerGitHub <noreply@github.com>2017-08-20 19:37:29 +0200
commitae9b5e00989756bb676429530dfe81039009001c (patch)
tree119c9ac4b886c24d42f418e21e4175a942eb95ff /src/sound_openal.cpp
parentc8d3d1133945138108aa195e6b3c93b07c6e4fa0 (diff)
downloadminetest-ae9b5e00989756bb676429530dfe81039009001c.tar.gz
minetest-ae9b5e00989756bb676429530dfe81039009001c.tar.bz2
minetest-ae9b5e00989756bb676429530dfe81039009001c.zip
Modernize code: very last fixes (#6290)
Last modernization fixes
Diffstat (limited to 'src/sound_openal.cpp')
-rw-r--r--src/sound_openal.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sound_openal.cpp b/src/sound_openal.cpp
index 06259a27f..87ca0aa8e 100644
--- a/src/sound_openal.cpp
+++ b/src/sound_openal.cpp
@@ -353,9 +353,8 @@ public:
m_device = NULL;
for (auto &buffer : m_buffers) {
- for (std::vector<SoundBuffer*>::iterator iter = buffer.second.begin();
- iter != buffer.second.end(); ++iter) {
- delete *iter;
+ for (SoundBuffer *sb : buffer.second) {
+ delete sb;
}
buffer.second.clear();
}