diff --git a/test/test_pcm_export.cxx b/test/test_pcm_export.cxx index 9d01dd7e6..f69882737 100644 --- a/test/test_pcm_export.cxx +++ b/test/test_pcm_export.cxx @@ -373,7 +373,7 @@ template> static void TestAlsaChannelOrder51() { - typedef typename Traits::value_type value_type; + using value_type = typename Traits::value_type; static constexpr value_type src[] = { 0, 1, 2, 3, 4, 5, @@ -403,7 +403,7 @@ template> static void TestAlsaChannelOrder71() { - typedef typename Traits::value_type value_type; + using value_type = typename Traits::value_type; static constexpr value_type src[] = { 0, 1, 2, 3, 4, 5, 6, 7, diff --git a/test/test_pcm_interleave.cxx b/test/test_pcm_interleave.cxx index 92290d820..246dc6eb0 100644 --- a/test/test_pcm_interleave.cxx +++ b/test/test_pcm_interleave.cxx @@ -68,7 +68,7 @@ TEST(PcmTest, Interleave16) TEST(PcmTest, Interleave24) { - typedef uint8_t T; + using T = uint8_t; static constexpr T src1[] = { 1, 2, 3, 4, 5, 6 }; static constexpr T src2[] = { 7, 8, 9, 10, 11, 12 }; static constexpr T src3[] = { 13, 14, 15, 16, 17, 18 }; diff --git a/test/test_pcm_volume.cxx b/test/test_pcm_volume.cxx index b99b7b33f..7771b851c 100644 --- a/test/test_pcm_volume.cxx +++ b/test/test_pcm_volume.cxx @@ -33,7 +33,7 @@ template, static void TestVolume(G g=G()) { - typedef typename Traits::value_type value_type; + using value_type = typename Traits::value_type; PcmVolume pv; EXPECT_EQ(pv.Open(F, false), F); @@ -80,7 +80,7 @@ TEST(PcmTest, Volume16) TEST(PcmTest, Volume16to32) { constexpr SampleFormat F = SampleFormat::S16; - typedef int16_t value_type; + using value_type = int16_t; RandomInt g; PcmVolume pv;