diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:19:03 +0200 |
commit | 59f8144c50765189594d5932fc25869f9ea6e265 (patch) | |
tree | f460d9f46a99040dea402bcb3ad2d84a0e734285 /src/TextFile.cxx | |
parent | 5a7c931293b55a27c3f79c6951707a8d6e2a5f6c (diff) | |
download | mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.gz mpd-59f8144c50765189594d5932fc25869f9ea6e265.tar.xz mpd-59f8144c50765189594d5932fc25869f9ea6e265.zip |
*: use nullptr instead of NULL
Diffstat (limited to '')
-rw-r--r-- | src/TextFile.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextFile.cxx b/src/TextFile.cxx index 89df6d1bf..4a64ee963 100644 --- a/src/TextFile.cxx +++ b/src/TextFile.cxx @@ -45,16 +45,16 @@ TextFile::ReadLine() gsize length = 0, i; char *p; - assert(file != NULL); - assert(buffer != NULL); + assert(file != nullptr); + assert(buffer != nullptr); assert(buffer->allocated_len >= step); while (buffer->len < max_length) { p = fgets(buffer->str + length, buffer->allocated_len - length, file); - if (p == NULL) { + if (p == nullptr) { if (length == 0 || ferror(file)) - return NULL; + return nullptr; break; } |