diff options
author | Max Kellermann <max@duempel.org> | 2014-04-24 18:06:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-04-24 18:06:46 +0200 |
commit | 9616e9bf3b8b6d8e28e0e5272953c4a4bcf4890c (patch) | |
tree | 3eede64464bf25be7edda4a6e269a39073842155 /src/db | |
parent | 7c8b73bffba40e9f1a64fa358bcd9d75d16f365d (diff) | |
download | mpd-9616e9bf3b8b6d8e28e0e5272953c4a4bcf4890c.tar.gz mpd-9616e9bf3b8b6d8e28e0e5272953c4a4bcf4890c.tar.xz mpd-9616e9bf3b8b6d8e28e0e5272953c4a4bcf4890c.zip |
DatabasePrint: pass const SearchStats reference
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/DatabasePrint.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx index 539b9773f..cd2c32ed5 100644 --- a/src/db/DatabasePrint.cxx +++ b/src/db/DatabasePrint.cxx @@ -173,10 +173,11 @@ struct SearchStats { unsigned long playTime; }; -static void printSearchStats(Client &client, SearchStats *stats) +static void +printSearchStats(Client &client, const SearchStats &stats) { - client_printf(client, "songs: %u\n", stats->numberOfSongs); - client_printf(client, "playtime: %lu\n", stats->playTime); + client_printf(client, "songs: %u\n", stats.numberOfSongs); + client_printf(client, "playtime: %lu\n", stats.playTime); } static bool @@ -209,7 +210,7 @@ searchStatsForSongsIn(Client &client, const char *name, if (!db->Visit(selection, f, error)) return false; - printSearchStats(client, &stats); + printSearchStats(client, stats); return true; } |