aboutsummaryrefslogtreecommitdiffstats
path: root/src/FilterPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
committerMax Kellermann <max@duempel.org>2013-10-19 18:19:03 +0200
commit59f8144c50765189594d5932fc25869f9ea6e265 (patch)
treef460d9f46a99040dea402bcb3ad2d84a0e734285 /src/FilterPlugin.cxx
parent5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff)
downloadmpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip
*: use nullptr instead of NULL
Diffstat (limited to 'src/FilterPlugin.cxx')
-rw-r--r--src/FilterPlugin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/FilterPlugin.cxx b/src/FilterPlugin.cxx
index 9afda3f73..608542f92 100644
--- a/src/FilterPlugin.cxx
+++ b/src/FilterPlugin.cxx
@@ -31,7 +31,7 @@ Filter *
filter_new(const struct filter_plugin *plugin,
const config_param &param, Error &error)
{
- assert(plugin != NULL);
+ assert(plugin != nullptr);
assert(!error.IsDefined());
return plugin->init(param, error);
@@ -43,16 +43,16 @@ filter_configured_new(const config_param &param, Error &error)
assert(!error.IsDefined());
const char *plugin_name = param.GetBlockValue("plugin");
- if (plugin_name == NULL) {
+ if (plugin_name == nullptr) {
error.Set(config_domain, "No filter plugin specified");
- return NULL;
+ return nullptr;
}
const filter_plugin *plugin = filter_plugin_by_name(plugin_name);
- if (plugin == NULL) {
+ if (plugin == nullptr) {
error.Format(config_domain,
"No such filter plugin: %s", plugin_name);
- return NULL;
+ return nullptr;
}
return filter_new(plugin, param, error);