From 9ed184edbf7269cd552014961546c2cc9db0ec2f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sat, 6 Feb 2021 00:32:01 +0100 Subject: [PATCH] Simplify code --- src/playlist/playlistmanager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/playlist/playlistmanager.cpp b/src/playlist/playlistmanager.cpp index 7c567ed3d..3bba043ac 100644 --- a/src/playlist/playlistmanager.cpp +++ b/src/playlist/playlistmanager.cpp @@ -207,8 +207,7 @@ void PlaylistManager::Load(const QString &filename) { Playlist *playlist = AddPlaylist(id, info.completeBaseName(), QString(), QString(), false); - QList urls; - playlist->InsertUrls(urls << QUrl::fromLocalFile(filename)); + playlist->InsertUrls(QList() << QUrl::fromLocalFile(filename)); }