diff options
author | Max Kellermann <max@duempel.org> | 2013-09-05 09:40:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-05 09:40:32 +0200 |
commit | 5348808bf594de927cc64eebae9118d6971343b1 (patch) | |
tree | f5e064c1510d476a6391c1f24059036931c2231e /src/PlaylistPlugin.hxx | |
parent | fccba1af2aae9a90f117b3ae2232f5b60a7e9f63 (diff) | |
download | mpd-5348808bf594de927cc64eebae9118d6971343b1.tar.gz mpd-5348808bf594de927cc64eebae9118d6971343b1.tar.xz mpd-5348808bf594de927cc64eebae9118d6971343b1.zip |
PlaylistPlugin, ConfigGlobal: use nullptr instead of NULL
Diffstat (limited to 'src/PlaylistPlugin.hxx')
-rw-r--r-- | src/PlaylistPlugin.hxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/PlaylistPlugin.hxx b/src/PlaylistPlugin.hxx index 069b818ba..f89fd9ce0 100644 --- a/src/PlaylistPlugin.hxx +++ b/src/PlaylistPlugin.hxx @@ -23,8 +23,6 @@ #include "thread/Mutex.hxx" #include "thread/Cond.hxx" -#include <stddef.h> - struct config_param; struct input_stream; struct Tag; @@ -50,7 +48,7 @@ struct playlist_plugin { /** * Initialize the plugin. Optional method. * - * @param param a configuration block for this plugin, or NULL + * @param param a configuration block for this plugin, or nullptr * if none is configured * @return true if the plugin was initialized successfully, * false if the plugin is not available @@ -89,7 +87,7 @@ struct playlist_plugin { /** * Initialize a plugin. * - * @param param a configuration block for this plugin, or NULL if none + * @param param a configuration block for this plugin, or nullptr if none * is configured * @return true if the plugin was initialized successfully, false if * the plugin is not available @@ -98,7 +96,7 @@ static inline bool playlist_plugin_init(const struct playlist_plugin *plugin, const config_param ¶m) { - return plugin->init != NULL + return plugin->init != nullptr ? plugin->init(param) : true; } @@ -109,7 +107,7 @@ playlist_plugin_init(const struct playlist_plugin *plugin, static inline void playlist_plugin_finish(const struct playlist_plugin *plugin) { - if (plugin->finish != NULL) + if (plugin->finish != nullptr) plugin->finish(); } |