From 2a5feb225b0c2232fd20b46809ee49758cb4f93a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 30 Dec 2014 23:26:54 +0100 Subject: ConfigData: use nullptr instead of NULL --- src/config/ConfigData.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/ConfigData.cxx b/src/config/ConfigData.cxx index 70e1e55ed..7b1f59bdf 100644 --- a/src/config/ConfigData.cxx +++ b/src/config/ConfigData.cxx @@ -80,7 +80,7 @@ config_param::GetBlockParam(const char *name) const } } - return NULL; + return nullptr; } const char * @@ -152,7 +152,7 @@ bool config_param::GetBlockValue(const char *name, bool default_value) const { const block_param *bp = GetBlockParam(name); - if (bp == NULL) + if (bp == nullptr) return default_value; return bp->GetBoolValue(); -- cgit v1.2.3