qDeleteAll() is awesome

This commit is contained in:
John Maguire 2010-02-25 17:47:01 +00:00
parent 1c0dc4c89c
commit 16d88ff914
1 changed files with 2 additions and 3 deletions

View File

@ -610,10 +610,9 @@ void LastFMService::FetchMoreTracksFinished() {
}
void LastFMService::Tune(const lastfm::RadioStation& station) {
foreach (QueuedTrack* t, playlist_) {
delete t;
}
qDeleteAll(playlist_);
playlist_.clear();
QMap<QString, QString> params;
params["method"] = "radio.tune";
params["station"] = station.url();