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:
@@ -39,7 +39,7 @@ class ClientSchemeHandler : public CefResourceHandler {
|
||||
bool handled = false;
|
||||
|
||||
std::string url = request->GetURL();
|
||||
if (strstr(url.c_str(), "handler.html") != NULL) {
|
||||
if (strstr(url.c_str(), "handler.html") != nullptr) {
|
||||
// Build the response html
|
||||
data_ =
|
||||
"<html><head><title>Client Scheme Handler</title></head>"
|
||||
@@ -65,7 +65,7 @@ class ClientSchemeHandler : public CefResourceHandler {
|
||||
|
||||
// Set the resulting mime type
|
||||
mime_type_ = "text/html";
|
||||
} else if (strstr(url.c_str(), "logo.png") != NULL) {
|
||||
} else if (strstr(url.c_str(), "logo.png") != nullptr) {
|
||||
// Load the response image
|
||||
if (LoadBinaryResource("logo.png", data_)) {
|
||||
handled = true;
|
||||
|
Reference in New Issue
Block a user