From 302eff0a59b849ce10cd88d2c4a4d8cd8b56822d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Feb 2020 13:38:43 +0100 Subject: [PATCH] decoder/{vorbis,mpcdec}: use `using` instead of `typedef` --- src/decoder/plugins/MpcdecDecoderPlugin.cxx | 2 +- src/decoder/plugins/VorbisDecoderPlugin.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/decoder/plugins/MpcdecDecoderPlugin.cxx b/src/decoder/plugins/MpcdecDecoderPlugin.cxx index 8c5fb9b74..ce86a15bf 100644 --- a/src/decoder/plugins/MpcdecDecoderPlugin.cxx +++ b/src/decoder/plugins/MpcdecDecoderPlugin.cxx @@ -45,7 +45,7 @@ struct mpc_decoder_data { static constexpr Domain mpcdec_domain("mpcdec"); static constexpr SampleFormat mpcdec_sample_format = SampleFormat::S24_P32; -typedef SampleTraits MpcdecSampleTraits; +using MpcdecSampleTraits = SampleTraits; static mpc_int32_t mpc_read_cb(mpc_reader *reader, void *ptr, mpc_int32_t size) diff --git a/src/decoder/plugins/VorbisDecoderPlugin.cxx b/src/decoder/plugins/VorbisDecoderPlugin.cxx index 21a770bd7..125ec95f2 100644 --- a/src/decoder/plugins/VorbisDecoderPlugin.cxx +++ b/src/decoder/plugins/VorbisDecoderPlugin.cxx @@ -50,8 +50,8 @@ class VorbisDecoder final : public OggDecoder { typedef int16_t out_sample_t; #else static constexpr SampleFormat sample_format = SampleFormat::FLOAT; - typedef float in_sample_t; - typedef float out_sample_t; + using in_sample_t = float; + using out_sample_t = float; #endif unsigned remaining_header_packets;