From de64b35359dff6f052aee4b38042c0d91ae5aefb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 29 Aug 2014 23:24:49 +0200 Subject: [PATCH] db/upnp: use DatabaseStats::Clear() --- src/db/plugins/upnp/UpnpDatabasePlugin.cxx | 5 +---- 1 file changed, 1 insertion(+), 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; }