summaryrefslogtreecommitdiff
path: root/src/playlist/SongEnumerator.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-02-07 08:23:30 +0100
committerMax Kellermann <max@duempel.org>2016-02-07 11:58:54 +0100
commit1c5f76635ab4bb4ad95da5d8d995b4ba84077307 (patch)
treecf2a5baa5f52ef858e1e138c16154e2713250328 /src/playlist/SongEnumerator.hxx
parente2a0fd7a284e447e21a78e06c4f9481f4ec9b8a3 (diff)
playlist/SongEnumerator: wrap song in std::unique_ptr
Diffstat (limited to 'src/playlist/SongEnumerator.hxx')
-rw-r--r--src/playlist/SongEnumerator.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/playlist/SongEnumerator.hxx b/src/playlist/SongEnumerator.hxx
index 0f6997785..9a14c74b4 100644
--- a/src/playlist/SongEnumerator.hxx
+++ b/src/playlist/SongEnumerator.hxx
@@ -20,6 +20,8 @@
#ifndef MPD_SONG_ENUMERATOR_HXX
#define MPD_SONG_ENUMERATOR_HXX
+#include <memory>
+
class DetachedSong;
/**
@@ -31,11 +33,10 @@ public:
virtual ~SongEnumerator() {}
/**
- * Obtain the next song. The caller is responsible for
- * freeing the returned #Song object. Returns nullptr if
- * there are no more songs.
+ * Obtain the next song. Returns nullptr if there are no more
+ * songs.
*/
- virtual DetachedSong *NextSong() = 0;
+ virtual std::unique_ptr<DetachedSong> NextSong() = 0;
};
#endif