playlist editor: rename private members

This commit is contained in:
Andrzej Rybczak
2012-10-01 20:50:17 +02:00
parent 9a292ca20d
commit 9aaa93a4e3
2 changed files with 8 additions and 8 deletions

View File

@@ -125,9 +125,9 @@ void PlaylistEditor::switchTo()
void PlaylistEditor::update()
{
if (Playlists.reallyEmpty() || playlistsUpdateRequested)
if (Playlists.reallyEmpty() || m_playlists_update_requested)
{
playlistsUpdateRequested = false;
m_playlists_update_requested = false;
Playlists.clearSearchResults();
withUnfilteredMenuReapplyFilter(Playlists, [this]() {
size_t idx = 0;
@@ -146,9 +146,9 @@ void PlaylistEditor::update()
Playlists.refresh();
}
if (!Playlists.empty() && (Content.reallyEmpty() || contentUpdateRequested))
if (!Playlists.empty() && (Content.reallyEmpty() || m_content_update_requested))
{
contentUpdateRequested = false;
m_content_update_requested = false;
Content.clearSearchResults();
withUnfilteredMenuReapplyFilter(Content, [this]() {
size_t idx = 0;

View File

@@ -69,8 +69,8 @@ struct PlaylistEditor: Screen<NC::Window *>, Filterable, HasColumns, HasSongs, S
virtual void nextColumn() OVERRIDE;
// private members
void requestPlaylistsUpdate() { playlistsUpdateRequested = true; }
void requestContentsUpdate() { contentUpdateRequested = true; }
void requestPlaylistsUpdate() { m_playlists_update_requested = true; }
void requestContentsUpdate() { m_content_update_requested = true; }
virtual void Locate(const std::string &);
bool isContentFiltered();
@@ -85,8 +85,8 @@ protected:
private:
void AddToPlaylist(bool);
bool playlistsUpdateRequested;
bool contentUpdateRequested;
bool m_playlists_update_requested;
bool m_content_update_requested;
};
extern PlaylistEditor *myPlaylistEditor;