[clang-tidy] use auto

Found with modernize-use-auto.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-04-21 15:51:48 -07:00
committed by Max Kellermann
parent 71792ffd43
commit 6979be008c
2 changed files with 3 additions and 3 deletions

View File

@@ -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;