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 @@ class CefCppToCScoped : public CefBaseScoped {
// }
static StructName* WrapOwn(CefOwnPtr<BaseName> c) {
if (!c)
return NULL;
return nullptr;
// Wrap our object with the CefCppToC class.
ClassName* wrapper = new ClassName();
@ -97,7 +97,7 @@ class CefCppToCScoped : public CefBaseScoped {
// We're giving up ownership of the underlying object. Clear the pointer so
// it doesn't get deleted.
BaseName* object = wrapperStruct->object_;
wrapperStruct->object_ = NULL;
wrapperStruct->object_ = nullptr;
delete wrapperStruct->wrapper_;
@ -114,7 +114,7 @@ class CefCppToCScoped : public CefBaseScoped {
// }
static CefRawPtr<BaseName> UnwrapRaw(StructName* s) {
if (!s)
return NULL;
return nullptr;
// Cast our structure to the wrapper structure type.
WrapperStruct* wrapperStruct = GetWrapperStruct(s);