diff options
author | Max Kellermann <max@duempel.org> | 2014-01-07 21:39:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-09 09:05:58 +0100 |
commit | 322b0616322760dc162447563d8f4da7e024ca90 (patch) | |
tree | 2f87cb3ce061556161797aba9f57ee08de5b9e21 /src/MemorySongEnumerator.hxx | |
parent | 43847f2244a34064af24704aac4cfad4a3c76f7d (diff) | |
download | mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.gz mpd-322b0616322760dc162447563d8f4da7e024ca90.tar.xz mpd-322b0616322760dc162447563d8f4da7e024ca90.zip |
DetachedSong: fork of struct Song
From now on, struct Song will be used by the database only, and
DetachedSong will be used by everybody else. DetachedSong is easier
to use, but Song has lower overhead.
Diffstat (limited to 'src/MemorySongEnumerator.hxx')
-rw-r--r-- | src/MemorySongEnumerator.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MemorySongEnumerator.hxx b/src/MemorySongEnumerator.hxx index 46086a064..085e16bc6 100644 --- a/src/MemorySongEnumerator.hxx +++ b/src/MemorySongEnumerator.hxx @@ -21,18 +21,18 @@ #define MPD_MEMORY_PLAYLIST_PROVIDER_HXX #include "SongEnumerator.hxx" -#include "SongPointer.hxx" +#include "DetachedSong.hxx" #include <forward_list> class MemorySongEnumerator final : public SongEnumerator { - std::forward_list<SongPointer> songs; + std::forward_list<DetachedSong> songs; public: - MemorySongEnumerator(std::forward_list<SongPointer> &&_songs) + MemorySongEnumerator(std::forward_list<DetachedSong> &&_songs) :songs(std::move(_songs)) {} - virtual Song *NextSong() override; + virtual DetachedSong *NextSong() override; }; #endif |