sort playlist dialog: make a few members const
This commit is contained in:
@@ -32,6 +32,8 @@ using Global::MainStartY;
|
||||
SortPlaylistDialog *mySortPlaylistDialog;
|
||||
|
||||
SortPlaylistDialog::SortPlaylistDialog()
|
||||
: m_sort_entry(std::make_pair("Sort", static_cast<MPD::Song::GetFunction>(0)))
|
||||
, m_cancel_entry(std::make_pair("Cancel", static_cast<MPD::Song::GetFunction>(0)))
|
||||
{
|
||||
setDimensions();
|
||||
|
||||
@@ -52,8 +54,6 @@ SortPlaylistDialog::SortPlaylistDialog()
|
||||
w->addItem(std::make_pair("Filename", &MPD::Song::getURI));
|
||||
|
||||
m_sort_options = w->size();
|
||||
m_sort_entry = std::make_pair("Sort", static_cast<MPD::Song::GetFunction>(0));
|
||||
m_cancel_entry = std::make_pair("Cancel", static_cast<MPD::Song::GetFunction>(0));
|
||||
|
||||
w->addSeparator();
|
||||
w->addItem(m_sort_entry);
|
||||
|
||||
@@ -56,8 +56,8 @@ private:
|
||||
size_t m_height;
|
||||
size_t m_width;
|
||||
|
||||
ScreenType::Item::Type m_sort_entry;
|
||||
ScreenType::Item::Type m_cancel_entry;
|
||||
const ScreenType::Item::Type m_sort_entry;
|
||||
const ScreenType::Item::Type m_cancel_entry;
|
||||
};
|
||||
|
||||
extern SortPlaylistDialog *mySortPlaylistDialog;
|
||||
|
||||
Reference in New Issue
Block a user