diff options
author | Max Kellermann <max@musicpd.org> | 2020-02-01 13:55:08 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2020-02-01 14:02:43 +0100 |
commit | 72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (patch) | |
tree | d52d290cab7f7cbec7e67ebb0f7998962cdae534 /test | |
parent | 4f22f4d357c99ba4163a496882f813138db3c39b (diff) |
*: use `auto`
Diffstat (limited to 'test')
-rw-r--r-- | test/TestRewindInputStream.cxx | 2 | ||||
-rw-r--r-- | test/test_pcm_format.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/TestRewindInputStream.cxx b/test/TestRewindInputStream.cxx index b105924c2..7420bb853 100644 --- a/test/TestRewindInputStream.cxx +++ b/test/TestRewindInputStream.cxx @@ -43,7 +43,7 @@ TEST(RewindInputStream, Basic) { Mutex mutex; - StringInputStream *sis = + auto *sis = new StringInputStream("foo://", mutex, "foo bar"); EXPECT_TRUE(sis->IsReady()); diff --git a/test/test_pcm_format.cxx b/test/test_pcm_format.cxx index 5ff65dc6a..8d27a4b20 100644 --- a/test/test_pcm_format.cxx +++ b/test/test_pcm_format.cxx @@ -94,7 +94,7 @@ TEST(PcmTest, FormatFloat16) EXPECT_EQ(src[i], d[i]); /* check if clamping works */ - float *writable = const_cast<float *>(f.data); + auto *writable = const_cast<float *>(f.data); *writable++ = 1.01; *writable++ = 10; *writable++ = -1.01; @@ -140,7 +140,7 @@ TEST(PcmTest, FormatFloat32) EXPECT_NEAR(src[i], d[i], error); /* check if clamping works */ - float *writable = const_cast<float *>(f.data); + auto *writable = const_cast<float *>(f.data); *writable++ = 1.01; *writable++ = 10; *writable++ = -1.01; |