Initialize user_favorites_ and remove an excessive line

* Add Favorites support to SoundCloud

* Initialize variable and remove an excessive line
This commit is contained in:
Vavooon 2016-04-21 22:03:58 +02:00 committed by John Maguire
parent 7ef095d0cb
commit d019cb7f80
1 changed files with 1 additions and 1 deletions

View File

@ -72,6 +72,7 @@ SoundCloudService::SoundCloudService(Application* app, InternetModel* parent)
user_tracks_(nullptr),
user_playlists_(nullptr),
user_activities_(nullptr),
user_favorites_(nullptr),
network_(new NetworkAccessManager(this)),
context_menu_(nullptr),
search_box_(new SearchBoxWidget(this)),
@ -137,7 +138,6 @@ void SoundCloudService::EnsureItemsCreated() {
InternetModel::Role_PlayBehaviour);
root_->appendRow(user_tracks_);
user_favorites_ = new QStandardItem(tr("Favorites"));
root_->appendRow(user_favorites_);