diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-03 01:08:20 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-03 01:08:20 +0100 |
commit | 7bfa120f37659971954f05a7abd866b743b339e2 (patch) | |
tree | 6035ccacce29e9a8a86cf637cb785febeaa1dbf8 /src/media_library.cpp | |
parent | 24de827f8bf349442678704f4583e75bf8606a2d (diff) |
mpd: get rid of *List typedefs
Diffstat (limited to 'src/media_library.cpp')
-rw-r--r-- | src/media_library.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/media_library.cpp b/src/media_library.cpp index 083c9175..a095877e 100644 --- a/src/media_library.cpp +++ b/src/media_library.cpp @@ -733,9 +733,9 @@ void MediaLibrary::reverseSelection() reverseSelectionHelper(Songs.begin(), Songs.end()); } -MPD::SongList MediaLibrary::getSelectedSongs() +std::vector<MPD::Song> MediaLibrary::getSelectedSongs() { - MPD::SongList result; + std::vector<MPD::Song> result; if (isActiveWindow(Tags)) { auto tag_handler = [&result](const std::string &tag) { @@ -1059,7 +1059,7 @@ void MediaLibrary::AddToPlaylist(bool add_n_play) { Mpd.StartSearch(true); Mpd.AddSearch(Config.media_lib_primary_tag, Tags.current().value().tag()); - MPD::SongList list( + std::vector<MPD::Song> list( std::make_move_iterator(Mpd.CommitSearchSongs()), std::make_move_iterator(MPD::SongIterator()) ); |