From ae9b5e00989756bb676429530dfe81039009001c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Sun, 20 Aug 2017 19:37:29 +0200 Subject: Modernize code: very last fixes (#6290) Last modernization fixes --- src/sound_openal.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/sound_openal.cpp') 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::iterator iter = buffer.second.begin(); - iter != buffer.second.end(); ++iter) { - delete *iter; + for (SoundBuffer *sb : buffer.second) { + delete sb; } buffer.second.clear(); } -- cgit v1.2.3