diff options
author | Max Kellermann <max@duempel.org> | 2013-10-28 23:58:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-28 23:58:17 +0100 |
commit | 20597b3632d3b6e25ba532716106f90d5b64d0e8 (patch) | |
tree | fa6dabaff127150caf3cf4723257f15ef2c3e0f8 /src/fs/Config.cxx | |
parent | 4728735acf20fba24d0d03ab431160e250325869 (diff) | |
download | mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.gz mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.tar.xz mpd-20597b3632d3b6e25ba532716106f90d5b64d0e8.zip |
*: use nullptr instead of NULL
Diffstat (limited to 'src/fs/Config.cxx')
-rw-r--r-- | src/fs/Config.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/Config.cxx b/src/fs/Config.cxx index 3d7e99b4a..63e64ef99 100644 --- a/src/fs/Config.cxx +++ b/src/fs/Config.cxx @@ -38,15 +38,15 @@ void ConfigureFS() { - const char *charset = NULL; + const char *charset = nullptr; - charset = config_get_string(CONF_FS_CHARSET, NULL); - if (charset == NULL) { + charset = config_get_string(CONF_FS_CHARSET, nullptr); + if (charset == nullptr) { #ifndef WIN32 const gchar **encodings; g_get_filename_charsets(&encodings); - if (encodings[0] != NULL && *encodings[0] != '\0') + if (encodings[0] != nullptr && *encodings[0] != '\0') charset = encodings[0]; #else /* Glib claims that file system encoding is always utf-8 |