aboutsummaryrefslogtreecommitdiffstats
path: root/src/TextFile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TextFile.cxx')
-rw-r--r--src/TextFile.cxx8
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;
}