diff options
author | Max Kellermann <max@musicpd.org> | 2020-02-01 13:38:00 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-02-01 13:38:00 +0100 |
commit | 4968dd4faadb226035d94367723a2d50dc3541a5 (patch) | |
tree | 60f15721f2190bb9f464c352a4e1767e2f6ec448 /src/pcm | |
parent | 0896f444552a383a0da1b5056a361bef9596f414 (diff) |
pcm/Dither: use `using` instead of `typedef`
Diffstat (limited to 'src/pcm')
-rw-r--r-- | src/pcm/Dither.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pcm/Dither.cxx b/src/pcm/Dither.cxx index dfc5b4743..270ba4fe6 100644 --- a/src/pcm/Dither.cxx +++ b/src/pcm/Dither.cxx @@ -101,8 +101,8 @@ inline void PcmDither::Dither24To16(int16_t *dest, const int32_t *src, const int32_t *src_end) noexcept { - typedef SampleTraits<SampleFormat::S24_P32> ST; - typedef SampleTraits<SampleFormat::S16> DT; + using ST = SampleTraits<SampleFormat::S24_P32>; + using DT = SampleTraits<SampleFormat::S16>; DitherConvert<ST, DT>(dest, src, src_end); } @@ -110,7 +110,7 @@ inline void PcmDither::Dither32To16(int16_t *dest, const int32_t *src, const int32_t *src_end) noexcept { - typedef SampleTraits<SampleFormat::S32> ST; - typedef SampleTraits<SampleFormat::S16> DT; + using ST = SampleTraits<SampleFormat::S32>; + using DT = SampleTraits<SampleFormat::S16>; DitherConvert<ST, DT>(dest, src, src_end); } |