diff options
author | Max Kellermann <max@duempel.org> | 2014-08-29 23:24:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-29 23:24:49 +0200 |
commit | de64b35359dff6f052aee4b38042c0d91ae5aefb (patch) | |
tree | 274bb76a48412a9b221a05fbf610d9719667100a /src/db | |
parent | 7df8e1eab27c9539acad3f843d8a882ea9b3e71c (diff) |
db/upnp: use DatabaseStats::Clear()
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/plugins/upnp/UpnpDatabasePlugin.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx index e16f230fb..21ddb8790 100644 --- a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx +++ b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx @@ -772,10 +772,7 @@ UpnpDatabase::GetStats(const DatabaseSelection &, { /* Note: this gets called before the daemonizing so we can't reallyopen this would be a problem if we had real stats */ - stats.song_count = 0; - stats.total_duration = 0; - stats.artist_count = 0; - stats.album_count = 0; + stats.Clear(); return true; } |