use const references
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
a8c77a6fba
commit
837fc98638
@ -83,8 +83,8 @@ audiofile_file_read(AFvirtualfile *vfile, void *data, size_t length) noexcept
|
|||||||
static AFfileoffset
|
static AFfileoffset
|
||||||
audiofile_file_length(AFvirtualfile *vfile) noexcept
|
audiofile_file_length(AFvirtualfile *vfile) noexcept
|
||||||
{
|
{
|
||||||
AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure;
|
const AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure;
|
||||||
InputStream &is = afis.is;
|
const InputStream &is = afis.is;
|
||||||
|
|
||||||
return is.GetSize();
|
return is.GetSize();
|
||||||
}
|
}
|
||||||
@ -92,8 +92,8 @@ audiofile_file_length(AFvirtualfile *vfile) noexcept
|
|||||||
static AFfileoffset
|
static AFfileoffset
|
||||||
audiofile_file_tell(AFvirtualfile *vfile) noexcept
|
audiofile_file_tell(AFvirtualfile *vfile) noexcept
|
||||||
{
|
{
|
||||||
AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure;
|
const AudioFileInputStream &afis = *(AudioFileInputStream *)vfile->closure;
|
||||||
InputStream &is = afis.is;
|
const InputStream &is = afis.is;
|
||||||
|
|
||||||
return is.GetOffset();
|
return is.GetOffset();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user