*: use auto

This commit is contained in:
Max Kellermann
2020-02-01 13:55:08 +01:00
parent 4f22f4d357
commit 72ec641f0d
51 changed files with 87 additions and 87 deletions

View File

@@ -146,7 +146,7 @@ void
VorbisDecoder::OnOggBeginning(const ogg_packet &_packet)
{
/* libvorbis wants non-const packets */
ogg_packet &packet = const_cast<ogg_packet &>(_packet);
auto &packet = const_cast<ogg_packet &>(_packet);
ReinitVorbis();
@@ -251,7 +251,7 @@ void
VorbisDecoder::OnOggPacket(const ogg_packet &_packet)
{
/* libvorbis wants non-const packets */
ogg_packet &packet = const_cast<ogg_packet &>(_packet);
auto &packet = const_cast<ogg_packet &>(_packet);
if (remaining_header_packets > 0) {
if (vorbis_synthesis_headerin(&vi, &vc, &packet) != 0)