*: use auto

This commit is contained in:
Max Kellermann
2020-02-01 13:55:08 +01:00
parent 4f22f4d357
commit 72ec641f0d
51 changed files with 87 additions and 87 deletions

View File

@@ -584,7 +584,7 @@ ProxyDatabase::OnSocketReady(gcc_unused unsigned flags) noexcept
return true;
}
unsigned idle = (unsigned)mpd_recv_idle(connection, false);
auto idle = (unsigned)mpd_recv_idle(connection, false);
if (idle == 0) {
try {
CheckError(connection);
@@ -666,7 +666,7 @@ ProxyDatabase::ReturnSong(const LightSong *_song) const noexcept
{
assert(_song != nullptr);
AllocatedProxySong *song = (AllocatedProxySong *)
auto *song = (AllocatedProxySong *)
const_cast<LightSong *>(_song);
delete song;
}