Commit 837fc986 authored by Rosen Penev's avatar Rosen Penev

use const references

Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent a8c77a6f
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment