diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
commit | 59f8144c50765189594d5932fc25869f9ea6e265 (patch) | |
tree | f460d9f46a99040dea402bcb3ad2d84a0e734285 /src/DespotifyUtils.cxx | |
parent | 5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff) | |
download | mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip |
*: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r-- | src/DespotifyUtils.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DespotifyUtils.cxx b/src/DespotifyUtils.cxx index cf95998ad..769a4e8fb 100644 --- a/src/DespotifyUtils.cxx +++ b/src/DespotifyUtils.cxx @@ -75,7 +75,7 @@ void mpd_despotify_unregister_callback(void (*cb)(struct despotify_session *, in for (i = 0; i < sizeof(registered_callbacks) / sizeof(registered_callbacks[0]); i++) { if (registered_callbacks[i] == cb) { - registered_callbacks[i] = NULL; + registered_callbacks[i] = nullptr; } } } @@ -118,11 +118,11 @@ struct despotify_session *mpd_despotify_get_session(void) if (g_session) return g_session; - user = config_get_string(CONF_DESPOTIFY_USER, NULL); - passwd = config_get_string(CONF_DESPOTIFY_PASSWORD, NULL); + user = config_get_string(CONF_DESPOTIFY_USER, nullptr); + passwd = config_get_string(CONF_DESPOTIFY_PASSWORD, nullptr); high_bitrate = config_get_bool(CONF_DESPOTIFY_HIGH_BITRATE, true); - if (user == NULL || passwd == NULL) { + if (user == nullptr || passwd == nullptr) { LogDebug(despotify_domain, "disabling despotify because account is not configured"); return nullptr; @@ -133,7 +133,7 @@ struct despotify_session *mpd_despotify_get_session(void) return nullptr; } - g_session = despotify_init_client(callback, NULL, + g_session = despotify_init_client(callback, nullptr, high_bitrate, true); if (!g_session) { LogWarning(despotify_domain, |