[clang-tidy] remove misplaced const

The rhs evaluates to void *const, not const void*.

Found with misc-misplaced-const

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-02-02 15:56:29 -08:00
parent 140d8547c7
commit b9db8ddee6
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B
2 changed files with 4 additions and 4 deletions

View File

@ -200,7 +200,7 @@ audiofile_stream_decode(DecoderClient &client, InputStream &is)
AudioFileInputStream afis{&client, is};
AFvirtualfile *const vf = setup_virtual_fops(afis);
const AFfilehandle fh = afOpenVirtualFile(vf, "r", nullptr);
auto fh = afOpenVirtualFile(vf, "r", nullptr);
if (fh == AF_NULL_FILEHANDLE)
return;

View File

@ -231,7 +231,7 @@ faad_song_duration(DecoderBuffer &buffer, InputStream &is)
static NeAACDecHandle
faad_decoder_new()
{
const NeAACDecHandle decoder = NeAACDecOpen();
auto decoder = NeAACDecOpen();
NeAACDecConfigurationPtr config =
NeAACDecGetCurrentConfiguration(decoder);
@ -324,7 +324,7 @@ faad_get_file_time(InputStream &is)
static void
faad_stream_decode(DecoderClient &client, InputStream &is,
DecoderBuffer &buffer, const NeAACDecHandle decoder)
DecoderBuffer &buffer, NeAACDecHandle decoder)
{
const auto total_time = faad_song_duration(buffer, is);
@ -406,7 +406,7 @@ faad_stream_decode(DecoderClient &client, InputStream &is)
/* create the libfaad decoder */
const NeAACDecHandle decoder = faad_decoder_new();
auto decoder = faad_decoder_new();
AtScopeExit(decoder) { NeAACDecClose(decoder); };
faad_stream_decode(client, is, buffer, decoder);