DatabasePrint: pass const SearchStats reference
This commit is contained in:
parent
7c8b73bffb
commit
9616e9bf3b
@ -173,10 +173,11 @@ struct SearchStats {
|
|||||||
unsigned long playTime;
|
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, "songs: %u\n", stats.numberOfSongs);
|
||||||
client_printf(client, "playtime: %lu\n", stats->playTime);
|
client_printf(client, "playtime: %lu\n", stats.playTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool
|
static bool
|
||||||
@ -209,7 +210,7 @@ searchStatsForSongsIn(Client &client, const char *name,
|
|||||||
if (!db->Visit(selection, f, error))
|
if (!db->Visit(selection, f, error))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
printSearchStats(client, &stats);
|
printSearchStats(client, stats);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user