pcm/{Dop,Dsd*}: explicitly capture "this"

Implicit capturing is deprecated in C++20.
This commit is contained in:
Max Kellermann 2022-05-19 13:12:48 +02:00
parent 313b092ba8
commit fc6c274c97
3 changed files with 3 additions and 3 deletions

View File

@ -92,5 +92,5 @@ ConstBuffer<uint32_t>
DsdToDopConverter::Convert(ConstBuffer<uint8_t> src) noexcept
{
return rest_buffer.Process<uint32_t>(buffer, src, 2 * channels,
[=](auto && arg1, auto && arg2, auto && arg3) { return DsdToDop(arg1, arg2, arg3, channels); });
[this](auto && arg1, auto && arg2, auto && arg3) { return DsdToDop(arg1, arg2, arg3, channels); });
}

View File

@ -64,5 +64,5 @@ ConstBuffer<uint16_t>
Dsd16Converter::Convert(ConstBuffer<uint8_t> src) noexcept
{
return rest_buffer.Process<uint16_t>(buffer, src, channels,
[=](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To16(arg1, arg2, arg3, channels); });
[this](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To16(arg1, arg2, arg3, channels); });
}

View File

@ -66,5 +66,5 @@ ConstBuffer<uint32_t>
Dsd32Converter::Convert(ConstBuffer<uint8_t> src) noexcept
{
return rest_buffer.Process<uint32_t>(buffer, src, channels,
[=](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To32(arg1, arg2, arg3, channels); });
[this](auto && arg1, auto && arg2, auto && arg3) { return Dsd8To32(arg1, arg2, arg3, channels); });
}