summaryrefslogtreecommitdiff
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:38:05 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 13:38:19 +0100
commitbcc4e97c60c625fa66266a8a27cdc35a7fe10113 (patch)
tree5f115215465897463b2bb8635e6ab11a02203634 /src/pcm
parent4968dd4faadb226035d94367723a2d50dc3541a5 (diff)
pcm/PcmFormat: use `using` instead of `typedef`
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/PcmFormat.cxx16
1 files 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<typename C>
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<SampleFormat::S24_P32> SrcTraits;
- typedef SampleTraits<SampleFormat::S16> DstTraits;
+ using SrcTraits = SampleTraits<SampleFormat::S24_P32>;
+ using DstTraits = SampleTraits<SampleFormat::S16>;
PcmDither &dither;
@@ -61,8 +61,8 @@ struct Convert24To16 {
};
struct Convert32To16 {
- typedef SampleTraits<SampleFormat::S32> SrcTraits;
- typedef SampleTraits<SampleFormat::S16> DstTraits;
+ using SrcTraits = SampleTraits<SampleFormat::S32>;
+ using DstTraits = SampleTraits<SampleFormat::S16>;
PcmDither &dither;
@@ -88,8 +88,8 @@ struct FloatToInteger : PortableFloatToInteger<F, Traits> {};
template<typename Optimized, typename Portable>
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,