diff options
author | Chris Robinson <[email protected]> | 2023-02-06 12:35:51 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-02-06 12:35:51 -0800 |
commit | 0de7ea42fa197833bff70b4c370ed29f9859889d (patch) | |
tree | a7c61b3238d135728abbb7fe0496581a9510efb8 /alc | |
parent | ff530e982ec7cd8eea7033ef7dd4451e81aa32e5 (diff) |
Avoid using auto for lambda parameters
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alu.cpp | 2 | ||||
-rw-r--r-- | alc/context.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index d49b0d66..6e243412 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1966,7 +1966,7 @@ void ApplyDistanceComp(const al::span<FloatBufferLine> Samples, const size_t Sam auto delay_start = std::swap_ranges(inout, inout_end, distbuf); std::rotate(distbuf, delay_start, distbuf + base); } - std::transform(inout, inout_end, inout, [gain](auto a){ return a * gain; }); + std::transform(inout, inout_end, inout, [gain](float s) { return s * gain; }); } } diff --git a/alc/context.cpp b/alc/context.cpp index 32bd36eb..0aacaac5 100644 --- a/alc/context.cpp +++ b/alc/context.cpp @@ -230,7 +230,7 @@ bool ALCcontext::deinit() * given context. */ std::copy_if(oldarray->begin(), oldarray->end(), newarray->begin(), - [this](auto a){ return a != this; }); + [this](ContextBase *ctx) { return ctx != this; }); /* Store the new context array in the device. Wait for any current mix * to finish before deleting the old array. |