From 837fc98638aa723e4cfb67fa6ffe7bdd5a847672 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Thu, 11 Nov 2021 15:51:43 -0800 Subject: [PATCH] use const references Signed-off-by: Rosen Penev --- src/decoder/plugins/AudiofileDecoderPlugin.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/decoder/plugins/AudiofileDecoderPlugin.cxx b/src/decoder/plugins/AudiofileDecoderPlugin.cxx index d6457f7eb..b7f1b90e9 100644 --- a/src/decoder/plugins/AudiofileDecoderPlugin.cxx +++ b/src/decoder/plugins/AudiofileDecoderPlugin.cxx @@ -83,8 +83,8 @@ audiofile_file_read(AFvirtualfile *vfile, void *data, size_t length) noexcept static AFfileoffset audiofile_file_length(AFvirtualfile *vfile) noexcept { - AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure; - InputStream &is = afis.is; + const AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure; + const InputStream &is = afis.is; return is.GetSize(); } @@ -92,8 +92,8 @@ audiofile_file_length(AFvirtualfile *vfile) noexcept static AFfileoffset audiofile_file_tell(AFvirtualfile *vfile) noexcept { - AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure; - InputStream &is = afis.is; + const AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure; + const InputStream &is = afis.is; return is.GetOffset(); }