diff options
author | Max Kellermann <max@duempel.org> | 2015-01-21 22:36:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-21 23:30:00 +0100 |
commit | 1c3f5517fabc264d7b37935bd37197cdd68250ba (patch) | |
tree | 509f68fe930e79bfa4c70a1cf2146a347f8acdef /src/lib/despotify | |
parent | 10972da06030d57429dc2c86c21e37fd0aca88dc (diff) | |
download | mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.gz mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.xz mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.zip |
config/Option: convert to strictly-typed enum
Diffstat (limited to '')
-rw-r--r-- | src/lib/despotify/DespotifyUtils.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/despotify/DespotifyUtils.cxx b/src/lib/despotify/DespotifyUtils.cxx index e62994c6a..c72715ace 100644 --- a/src/lib/despotify/DespotifyUtils.cxx +++ b/src/lib/despotify/DespotifyUtils.cxx @@ -124,9 +124,9 @@ mpd_despotify_get_session() return g_session; const char *const user = - config_get_string(CONF_DESPOTIFY_USER, nullptr); + config_get_string(ConfigOption::DESPOTIFY_USER, nullptr); const char *const passwd = - config_get_string(CONF_DESPOTIFY_PASSWORD, nullptr); + config_get_string(ConfigOption::DESPOTIFY_PASSWORD, nullptr); if (user == nullptr || passwd == nullptr) { LogDebug(despotify_domain, @@ -140,7 +140,7 @@ mpd_despotify_get_session() } const bool high_bitrate = - config_get_bool(CONF_DESPOTIFY_HIGH_BITRATE, true); + config_get_bool(ConfigOption::DESPOTIFY_HIGH_BITRATE, true); g_session = despotify_init_client(callback, nullptr, high_bitrate, true); if (!g_session) { |