From bcc4e97c60c625fa66266a8a27cdc35a7fe10113 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 1 Feb 2020 13:38:05 +0100 Subject: [PATCH] pcm/PcmFormat: use `using` instead of `typedef` --- src/pcm/PcmFormat.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pcm/PcmFormat.cxx b/src/pcm/PcmFormat.cxx index 1c0d5b51c..943438790 100644 --- a/src/pcm/PcmFormat.cxx +++ b/src/pcm/PcmFormat.cxx @@ -33,8 +33,8 @@ */ template struct PerSampleConvert : C { - typedef typename C::SrcTraits SrcTraits; - typedef typename C::DstTraits DstTraits; + using SrcTraits = typename C::SrcTraits; + using DstTraits = typename C::DstTraits; void Convert(typename DstTraits::pointer gcc_restrict out, typename SrcTraits::const_pointer gcc_restrict in, @@ -48,8 +48,8 @@ struct Convert8To16 SampleFormat::S16>> {}; struct Convert24To16 { - typedef SampleTraits SrcTraits; - typedef SampleTraits DstTraits; + using SrcTraits = SampleTraits; + using DstTraits = SampleTraits; PcmDither &dither; @@ -61,8 +61,8 @@ struct Convert24To16 { }; struct Convert32To16 { - typedef SampleTraits SrcTraits; - typedef SampleTraits DstTraits; + using SrcTraits = SampleTraits; + using DstTraits = SampleTraits; PcmDither &dither; @@ -88,8 +88,8 @@ struct FloatToInteger : PortableFloatToInteger {}; template class GlueOptimizedConvert : Optimized, Portable { public: - typedef typename Portable::SrcTraits SrcTraits; - typedef typename Portable::DstTraits DstTraits; + using SrcTraits = typename Portable::SrcTraits; + using DstTraits = typename Portable::DstTraits; void Convert(typename DstTraits::pointer out, typename SrcTraits::const_pointer in,