diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-16 07:13:54 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2012-09-16 07:14:33 +0200 |
commit | 48cf01f0848175d1ec4c417f3483a8be9e9da084 (patch) | |
tree | 99188abcdaebf05df4a0b09da8d3fdaabf0bba40 /src/helpers.cpp | |
parent | ddd18681ba68ce1a8bff47fc14f663922c1d4ae6 (diff) |
pass ProxySongList around since it already has shared_ptr inside
Diffstat (limited to 'src/helpers.cpp')
-rw-r--r-- | src/helpers.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers.cpp b/src/helpers.cpp index 012c5df4..f6bcf965 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -90,12 +90,12 @@ std::string Timestamp(time_t t) return result; } -void markSongsInPlaylist(std::shared_ptr<ProxySongList> pl) +void markSongsInPlaylist(ProxySongList pl) { - size_t list_size = pl->size(); + size_t list_size = pl.size(); for (size_t i = 0; i < list_size; ++i) - if (auto s = pl->getSong(i)) - pl->setBold(i, myPlaylist->checkForSong(*s)); + if (auto s = pl.getSong(i)) + pl.setBold(i, myPlaylist->checkForSong(*s)); } std::wstring Scroller(const std::wstring &str, size_t &pos, size_t width) |