mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update generated files for NULL to nullptr conversion (see issue #2861)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=50239c2410b1976d78289858a3155e6f37591c9d$
|
||||
// $hash=5e0a3a27b41b550a1dd4985eec9034a6f7c2b7d7$
|
||||
//
|
||||
|
||||
#include <dlfcn.h>
|
||||
@@ -74,7 +74,7 @@
|
||||
|
||||
namespace {
|
||||
|
||||
void* g_libcef_handle = NULL;
|
||||
void* g_libcef_handle = nullptr;
|
||||
|
||||
void* libcef_get_ptr(const char* path, const char* name) {
|
||||
void* ptr = dlsym(g_libcef_handle, name);
|
||||
@@ -953,7 +953,7 @@ int cef_unload_library() {
|
||||
if (!result) {
|
||||
fprintf(stderr, "dlclose: %s\n", dlerror());
|
||||
}
|
||||
g_libcef_handle = NULL;
|
||||
g_libcef_handle = nullptr;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3edb51e2a90e523d8013129b8d17730e210eea65$
|
||||
// $hash=c565ea9030eeed15f24fe420b828453a23dbc6ba$
|
||||
//
|
||||
|
||||
#include "include/capi/cef_app_capi.h"
|
||||
@@ -492,7 +492,7 @@ CEF_GLOBAL CefRefPtr<CefBinaryValue> CefBase64Decode(const CefString& data) {
|
||||
// Verify param: data; type: string_byref_const
|
||||
DCHECK(!data.empty());
|
||||
if (data.empty())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
// Execute
|
||||
cef_binary_value_t* _retval = cef_base64decode(data.GetStruct());
|
||||
@@ -548,7 +548,7 @@ CEF_GLOBAL CefRefPtr<CefValue> CefParseJSON(const CefString& json_string,
|
||||
// Verify param: json_string; type: string_byref_const
|
||||
DCHECK(!json_string.empty());
|
||||
if (json_string.empty())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
// Execute
|
||||
cef_value_t* _retval = cef_parse_json(json_string.GetStruct(), options);
|
||||
@@ -568,7 +568,7 @@ CEF_GLOBAL CefRefPtr<CefValue> CefParseJSONAndReturnError(
|
||||
// Verify param: json_string; type: string_byref_const
|
||||
DCHECK(!json_string.empty());
|
||||
if (json_string.empty())
|
||||
return NULL;
|
||||
return nullptr;
|
||||
|
||||
// Execute
|
||||
cef_value_t* _retval = cef_parse_jsonand_return_error(
|
||||
|
Reference in New Issue
Block a user