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

@@ -111,13 +111,13 @@ CefString CefBase64Encode(const void* data, size_t data_size) {
CefRefPtr<CefBinaryValue> CefBase64Decode(const CefString& data) {
if (data.size() == 0)
return NULL;
return nullptr;
const std::string& input = data;
std::string output;
if (base::Base64Decode(input, &output))
return CefBinaryValue::Create(output.data(), output.size());
return NULL;
return nullptr;
}
CefString CefURIEncode(const CefString& text, bool use_plus) {
@@ -131,7 +131,7 @@ CefString CefURIDecode(const CefString& text,
static_cast<net::UnescapeRule::Type>(unescape_rule);
if (convert_to_utf8)
return net::UnescapeAndDecodeUTF8URLComponentWithAdjustments(
text.ToString(), type, NULL);
text.ToString(), type, nullptr);
else
return net::UnescapeURLComponent(text.ToString(), type);
}