From 59f8144c50765189594d5932fc25869f9ea6e265 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 19 Oct 2013 18:19:03 +0200 Subject: *: use nullptr instead of NULL --- src/FilterPlugin.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/FilterPlugin.cxx') 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 ¶m, 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 ¶m, 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); -- cgit v1.2.3