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,