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

This commit is contained in:
Marshall Greenblatt
2020-01-15 14:36:24 +01:00
parent c05c3e4065
commit ea63799c3e
98 changed files with 538 additions and 527 deletions

View File

@@ -34,7 +34,7 @@ CefDOMDocumentImpl::~CefDOMDocumentImpl() {
CEF_REQUIRE_RT();
// Verify that the Detach() method has been called.
DCHECK(frame_ == NULL);
DCHECK(frame_ == nullptr);
}
CefDOMDocumentImpl::Type CefDOMDocumentImpl::GetType() {
@@ -189,11 +189,11 @@ CefString CefDOMDocumentImpl::GetCompleteURL(const CefString& partialURL) {
CefRefPtr<CefDOMNode> CefDOMDocumentImpl::GetOrCreateNode(
const blink::WebNode& node) {
if (!VerifyContext())
return NULL;
return nullptr;
// Nodes may potentially be null.
if (node.IsNull())
return NULL;
return nullptr;
if (!node_map_.empty()) {
// Locate the existing node, if any.
@@ -238,11 +238,11 @@ void CefDOMDocumentImpl::Detach() {
node_map_.clear();
}
frame_ = NULL;
frame_ = nullptr;
}
bool CefDOMDocumentImpl::VerifyContext() {
if (!CEF_CURRENTLY_ON_RT() || frame_ == NULL) {
if (!CEF_CURRENTLY_ON_RT() || frame_ == nullptr) {
NOTREACHED();
return false;
}