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/ExcludeList.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ExcludeList.cxx') 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); -- cgit v1.2.3