mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Convert NULL to nullptr (see issue #2861)
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user