aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigGlobal.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 09:40:32 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 09:40:32 +0200
commit5348808bf594de927cc64eebae9118d6971343b1 (patch)
treef5e064c1510d476a6391c1f24059036931c2231e /src/ConfigGlobal.cxx
parentfccba1af2aae9a90f117b3ae2232f5b60a7e9f63 (diff)
downloadmpd-5348808bf594de927cc64eebae9118d6971343b1.tar.gz
mpd-5348808bf594de927cc64eebae9118d6971343b1.tar.xz
mpd-5348808bf594de927cc64eebae9118d6971343b1.zip
PlaylistPlugin, ConfigGlobal: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r--src/ConfigGlobal.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ConfigGlobal.cxx b/src/ConfigGlobal.cxx
index 0bf2b4433..07c5ddd96 100644
--- a/src/ConfigGlobal.cxx
+++ b/src/ConfigGlobal.cxx
@@ -92,7 +92,7 @@ config_get_string(ConfigOption option, const char *default_value)
{
const struct config_param *param = config_get_param(option);
- if (param == NULL)
+ if (param == nullptr)
return default_value;
return param->value;
@@ -102,7 +102,7 @@ Path
config_get_path(ConfigOption option, Error &error)
{
const struct config_param *param = config_get_param(option);
- if (param == NULL)
+ if (param == nullptr)
return Path::Null();
Path path = ParsePath(param->value, error);
@@ -120,7 +120,7 @@ config_get_unsigned(ConfigOption option, unsigned default_value)
long value;
char *endptr;
- if (param == NULL)
+ if (param == nullptr)
return default_value;
value = strtol(param->value, &endptr, 0);
@@ -138,7 +138,7 @@ config_get_positive(ConfigOption option, unsigned default_value)
long value;
char *endptr;
- if (param == NULL)
+ if (param == nullptr)
return default_value;
value = strtol(param->value, &endptr, 0);
@@ -157,7 +157,7 @@ config_get_bool(ConfigOption option, bool default_value)
const struct config_param *param = config_get_param(option);
bool success, value;
- if (param == NULL)
+ if (param == nullptr)
return default_value;
success = get_bool(param->value, &value);