diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-01 22:45:27 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2014-11-01 22:47:59 +0100 |
commit | fabd24c6a5135eb995f43c07352a444de6ab1a56 (patch) | |
tree | 423d841aa82000a09e1a6e05022be041288bdcfb /src/display.cpp | |
parent | 9a1afece8606c7f1a08b840f376a0d27cba19fa5 (diff) |
mpd: make ItemType enum class
Diffstat (limited to 'src/display.cpp')
-rw-r--r-- | src/display.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/display.cpp b/src/display.cpp index e6d1188c..b1ef8abe 100644 --- a/src/display.cpp +++ b/src/display.cpp @@ -386,12 +386,12 @@ void Display::Items(NC::Menu<MPD::Item> &menu, const ProxySongList &pl) const MPD::Item &item = menu.drawn()->value(); switch (item.type) { - case MPD::itDirectory: + case MPD::Item::Type::Directory: menu << "[" << Charset::utf8ToLocale(getBasename(item.name)) << "]"; break; - case MPD::itSong: + case MPD::Item::Type::Song: switch (Config.browser_display_mode) { case DisplayMode::Classic: @@ -402,7 +402,7 @@ void Display::Items(NC::Menu<MPD::Item> &menu, const ProxySongList &pl) break; } break; - case MPD::itPlaylist: + case MPD::Item::Type::Playlist: menu << Config.browser_playlist_prefix << Charset::utf8ToLocale(getBasename(item.name)); break; |