clang-tidy modernize-use-nullptr

This commit is contained in:
Daniel Agar
2017-01-28 20:21:58 -05:00
parent ec2467d4a5
commit e927f3e040
48 changed files with 155 additions and 153 deletions
+3 -3
View File
@@ -86,7 +86,7 @@ void
RingBuffer::flush()
{
while (!empty()) {
get(NULL);
get(nullptr);
}
}
@@ -179,7 +179,7 @@ RingBuffer::force(const void *val, size_t val_size)
break;
}
get(NULL);
get(nullptr);
overwrote = true;
}
@@ -281,7 +281,7 @@ RingBuffer::get(void *val, size_t val_size)
next = _next(candidate);
/* go ahead and read from this index */
if (val != NULL) {
if (val != nullptr) {
memcpy(val, &_buf[candidate * _item_size], val_size);
}