From 8d95b6a0f2cb9c2cbbe745e37ff1ba2589d6aa17 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 28 Nov 2018 08:42:30 -0800 Subject: Avoid an unnecessary lambda --- Alc/alc.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Alc/alc.cpp') diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 3d636354..a0f61c8d 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -2616,9 +2616,7 @@ ALCcontext_struct::~ALCcontext_struct() } TRACE("Freed " SZFMT " voice property object%s\n", count, (count==1)?"":"s"); - std::for_each(Voices, Voices + VoiceCount.load(std::memory_order_relaxed), - [](ALvoice *voice) noexcept -> void { DeinitVoice(voice); } - ); + std::for_each(Voices, Voices + VoiceCount.load(std::memory_order_relaxed), DeinitVoice); al_free(Voices); Voices = nullptr; VoiceCount.store(0, std::memory_order_relaxed); -- cgit v1.2.3