summaryrefslogtreecommitdiff
path: root/src/playlist.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-16 07:13:54 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-16 07:14:33 +0200
commit48cf01f0848175d1ec4c417f3483a8be9e9da084 (patch)
tree99188abcdaebf05df4a0b09da8d3fdaabf0bba40 /src/playlist.cpp
parentddd18681ba68ce1a8bff47fc14f663922c1d4ae6 (diff)
pass ProxySongList around since it already has shared_ptr inside
Diffstat (limited to 'src/playlist.cpp')
-rw-r--r--src/playlist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playlist.cpp b/src/playlist.cpp
index 632711eb..44300451 100644
--- a/src/playlist.cpp
+++ b/src/playlist.cpp
@@ -171,9 +171,9 @@ void Playlist::prevFound(bool wrap)
/***********************************************************************/
-std::shared_ptr<ProxySongList> Playlist::getProxySongList()
+ProxySongList Playlist::proxySongList()
{
- return mkProxySongList(w, [](NC::Menu<MPD::Song>::Item &item) {
+ return ProxySongList(w, [](NC::Menu<MPD::Song>::Item &item) {
return &item.value();
});
}