summaryrefslogtreecommitdiff
path: root/src/sort_playlist.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2012-09-14 16:16:35 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2012-09-14 16:16:35 +0200
commit9c29082afeec8751c53be7037b83e250133abf19 (patch)
tree97d8c22495d6c095db048c09f52b00e571f0e6ed /src/sort_playlist.cpp
parent4d6ea660bcbf8c5f4e61ad51d6f6bb739b4cb3a7 (diff)
playlist: define main screen as non-pointer
Diffstat (limited to 'src/sort_playlist.cpp')
-rw-r--r--src/sort_playlist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sort_playlist.cpp b/src/sort_playlist.cpp
index 10ff88d7..2e67ca01 100644
--- a/src/sort_playlist.cpp
+++ b/src/sort_playlist.cpp
@@ -98,9 +98,9 @@ void SortPlaylistDialog::enterPressed()
auto option = w->currentVI();
if (*option == m_sort_entry)
{
- auto begin = myPlaylist->main()->begin(), end = myPlaylist->main()->end();
+ auto begin = myPlaylist->main().begin(), end = myPlaylist->main().end();
// if songs are selected, sort range from first selected to last selected
- if (myPlaylist->main()->hasSelected())
+ if (myPlaylist->main().hasSelected())
{
while (!begin->isSelected())
++begin;
@@ -108,7 +108,7 @@ void SortPlaylistDialog::enterPressed()
--end;
}
- size_t start_pos = begin - myPlaylist->main()->begin();
+ size_t start_pos = begin - myPlaylist->main().begin();
MPD::SongList playlist;
playlist.reserve(end - begin);
for (; begin != end; ++begin)