aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-12 17:10:33 -0700
committerChris Robinson <[email protected]>2019-09-12 17:10:33 -0700
commit5ca8796d6ab804841be2724ecb3daa134eb23c39 (patch)
treeaee811068a738ce9f42b690df898b66eaf4623b5 /al/source.cpp
parent70b58d79fe06581a7ca6db3feb17d5d07f8f8de6 (diff)
Clean up some lambda definitions
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp
index b9989d5d..09b4133c 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -2110,7 +2110,7 @@ START_API_FUNC
std::lock_guard<std::mutex> _{context->mSourceLock};
/* Check that all Sources are valid */
- auto validate_source = [&context](ALuint sid) -> bool
+ auto validate_source = [&context](const ALuint sid) -> bool
{ return LookupSource(context.get(), sid) != nullptr; };
const ALuint *sources_end = sources + n;
@@ -2122,7 +2122,7 @@ START_API_FUNC
}
/* All good. Delete source IDs. */
- auto delete_source = [&context](ALuint sid) -> void
+ auto delete_source = [&context](const ALuint sid) -> void
{
ALsource *src{LookupSource(context.get(), sid)};
if(src) FreeSource(context.get(), src);