*: use nullptr instead of NULL

This commit is contained in:
Max Kellermann
2013-10-19 18:19:03 +02:00
parent 5a7c931293
commit 59f8144c50
97 changed files with 812 additions and 834 deletions

View File

@@ -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;
}