mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
libcef: Convert NULL to nullptr (see issue #2861)
This commit is contained in:
@@ -13,7 +13,7 @@ CefRefPtr<CefBaseRefCounted> CefCppToCRefCounted<
|
||||
cef_base_ref_counted_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_base_ref_counted_t* s) {
|
||||
NOTREACHED();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
|
@@ -19,7 +19,7 @@ CefRawPtr<CefBaseScoped>
|
||||
CefCppToCScoped<CefBaseScopedCppToC, CefBaseScoped, cef_base_scoped_t>::
|
||||
UnwrapDerivedRaw(CefWrapperType type, cef_base_scoped_t* s) {
|
||||
NOTREACHED();
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
template <>
|
||||
|
@@ -22,7 +22,7 @@ class CefCppToCRefCounted : public CefBaseRefCounted {
|
||||
// passing an object instance the other side.
|
||||
static StructName* Wrap(CefRefPtr<BaseName> c) {
|
||||
if (!c.get())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
// Wrap our object with the CefCppToCRefCounted class.
|
||||
ClassName* wrapper = new ClassName();
|
||||
@@ -38,7 +38,7 @@ class CefCppToCRefCounted : public CefBaseRefCounted {
|
||||
// back from the other side.
|
||||
static CefRefPtr<BaseName> Unwrap(StructName* s) {
|
||||
if (!s)
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
// Cast our structure to the wrapper structure type.
|
||||
WrapperStruct* wrapperStruct = GetWrapperStruct(s);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user