Comments from r2268.

This commit is contained in:
John Maguire 2010-11-22 20:15:07 +00:00
parent c2c3c8145b
commit 5b909a2983
1 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,7 @@ struct StationEquality {
void IcecastService::ParseDirectoryFinished() {
QFutureWatcher<QList<Station> >* watcher =
static_cast<QFutureWatcher<QList<Station> >*>(sender());
const QList<Station>& all_stations = watcher->result();
QList<Station> all_stations = watcher->result();
// Cluster stations by genre.
QMultiHash<QString, const Station*> genres;
@ -100,6 +100,7 @@ void IcecastService::ParseDirectoryFinished() {
}
// Sort genres by station count.
// HACK: De-dupe keys.
QList<QString> genre_names = genres.keys().toSet().toList();
sort(genre_names.begin(), genre_names.end(), GenreSorter<const Station*>(genres));