aboutsummaryrefslogtreecommitdiffstats
path: root/src/ExcludeList.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/ExcludeList.cxx
parent5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff)
downloadmpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz
mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip
*: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r--src/ExcludeList.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ExcludeList.cxx b/src/ExcludeList.cxx
index c6b0d1469..fbe8f8198 100644
--- a/src/ExcludeList.cxx
+++ b/src/ExcludeList.cxx
@@ -40,7 +40,7 @@ bool
ExcludeList::LoadFile(Path path_fs)
{
FILE *file = FOpen(path_fs, FOpenMode::ReadText);
- if (file == NULL) {
+ if (file == nullptr) {
const int e = errno;
if (e != ENOENT) {
const auto path_utf8 = path_fs.ToUTF8();
@@ -53,9 +53,9 @@ ExcludeList::LoadFile(Path path_fs)
}
char line[1024];
- while (fgets(line, sizeof(line), file) != NULL) {
+ while (fgets(line, sizeof(line), file) != nullptr) {
char *p = strchr(line, '#');
- if (p != NULL)
+ if (p != nullptr)
*p = 0;
p = g_strstrip(line);