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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user