Replace NULL with nullptr or null in webrtc/base/.

BUG=webrtc:7147

Review-Url: https://codereview.webrtc.org/2718663005
Cr-Commit-Position: refs/heads/master@{#16878}
This commit is contained in:
deadbeef
2017-02-27 14:06:41 -08:00
committed by Commit bot
parent c5da4785f3
commit 37f5ecfd8f
117 changed files with 809 additions and 836 deletions

View File

@ -141,7 +141,7 @@ const unsigned char ASCII_CLASS[128] = {
size_t url_encode(char * buffer, size_t buflen,
const char * source, size_t srclen) {
if (NULL == buffer)
if (nullptr == buffer)
return srclen * 3 + 1;
if (buflen <= 0)
return 0;
@ -167,7 +167,7 @@ size_t url_encode(char * buffer, size_t buflen,
size_t url_decode(char * buffer, size_t buflen,
const char * source, size_t srclen) {
if (NULL == buffer)
if (nullptr == buffer)
return srclen + 1;
if (buflen <= 0)
return 0;
@ -546,7 +546,7 @@ size_t transform(std::string& value, size_t maxlen, const std::string& source,
std::string s_transform(const std::string& source, Transform t) {
// Ask transformation function to approximate the destination size (returns upper bound)
size_t maxlen = t(NULL, 0, source.data(), source.length());
size_t maxlen = t(nullptr, 0, source.data(), source.length());
char * buffer = STACK_ARRAY(char, maxlen);
size_t len = t(buffer, maxlen, source.data(), source.length());
std::string result(buffer, len);