aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-28 08:42:30 -0800
committerChris Robinson <[email protected]>2018-11-28 08:42:30 -0800
commit8d95b6a0f2cb9c2cbbe745e37ff1ba2589d6aa17 (patch)
tree02a3fc0736ca169fb31c18dbf4ea743fcf36d2cd /Alc
parentec2927cd32a1d3a48da81947d611ace6d8361dca (diff)
Avoid an unnecessary lambda
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alc.cpp4
1 files changed, 1 insertions, 3 deletions
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);