summaryrefslogtreecommitdiff
path: root/src/encoder/plugins/ShineEncoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:55:08 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 14:02:43 +0100
commit72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (patch)
treed52d290cab7f7cbec7e67ebb0f7998962cdae534 /src/encoder/plugins/ShineEncoderPlugin.cxx
parent4f22f4d357c99ba4163a496882f813138db3c39b (diff)
*: use `auto`
Diffstat (limited to 'src/encoder/plugins/ShineEncoderPlugin.cxx')
-rw-r--r--src/encoder/plugins/ShineEncoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoder/plugins/ShineEncoderPlugin.cxx b/src/encoder/plugins/ShineEncoderPlugin.cxx
index cc427d700..93c9c9ed5 100644
--- a/src/encoder/plugins/ShineEncoderPlugin.cxx
+++ b/src/encoder/plugins/ShineEncoderPlugin.cxx
@@ -167,7 +167,7 @@ ShineEncoder::WriteChunk(bool flush)
void
ShineEncoder::Write(const void *_data, size_t length)
{
- const int16_t *data = (const int16_t*)_data;
+ const auto *data = (const int16_t*)_data;
length /= sizeof(*data) * audio_format.channels;
size_t written = 0;