summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-02-08 10:02:08 +0100
committerMax Kellermann <max@musicpd.org>2017-02-08 10:02:08 +0100
commitf689e28958f6486fdf2a8add463e2f83e9920547 (patch)
tree8ccc828e7accac31840d375dedc62c73fe27d872 /src/queue
parentd184231169687025200e189afe898d955fa095cb (diff)
SongLoader: return instance, not pointer
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/PlaylistEdit.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/queue/PlaylistEdit.cxx b/src/queue/PlaylistEdit.cxx
index 67675680c..a4a1a29e2 100644
--- a/src/queue/PlaylistEdit.cxx
+++ b/src/queue/PlaylistEdit.cxx
@@ -125,8 +125,7 @@ unsigned
playlist::AppendURI(PlayerControl &pc, const SongLoader &loader,
const char *uri)
{
- std::unique_ptr<DetachedSong> song(loader.LoadSong(uri));
- return AppendSong(pc, std::move(*song));
+ return AppendSong(pc, loader.LoadSong(uri));
}
void