cefclient: Convert NULL to nullptr (see issue #2861)

This commit is contained in:
Marshall Greenblatt
2020-01-15 15:28:12 +01:00
parent b785d34d29
commit d02d252690
53 changed files with 173 additions and 170 deletions

View File

@@ -15,7 +15,7 @@ BytesWriteHandler::BytesWriteHandler(size_t grow)
: grow_(grow), datasize_(grow), offset_(0) {
DCHECK_GT(grow, 0U);
data_ = malloc(grow);
DCHECK(data_ != NULL);
DCHECK(data_ != nullptr);
}
BytesWriteHandler::~BytesWriteHandler() {
@@ -81,7 +81,7 @@ size_t BytesWriteHandler::Grow(size_t size) {
size_t rv;
size_t s = (size > grow_ ? size : grow_);
void* tmp = realloc(data_, datasize_ + s);
DCHECK(tmp != NULL);
DCHECK(tmp != nullptr);
if (tmp) {
data_ = tmp;
datasize_ += s;