[clang-tidy] use auto
Found with modernize-use-auto. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:

committed by
Max Kellermann

parent
71792ffd43
commit
6979be008c
@@ -129,7 +129,7 @@ audiofile_file_seek(AFvirtualfile *vfile, AFfileoffset _offset,
|
||||
static AFvirtualfile *
|
||||
setup_virtual_fops(AudioFileInputStream &afis) noexcept
|
||||
{
|
||||
AFvirtualfile *vf = (AFvirtualfile *)malloc(sizeof(*vf));
|
||||
auto vf = (AFvirtualfile *)malloc(sizeof(AFvirtualfile));
|
||||
vf->closure = &afis;
|
||||
vf->write = nullptr;
|
||||
vf->read = audiofile_file_read;
|
||||
|
Reference in New Issue
Block a user