Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Unified Diff: webrtc/base/base64.cc

Issue 2718663005: Replace NULL with nullptr or null in webrtc/base/. (Closed)
Patch Set: Fixing Windows and formatting issues. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/base/base64.h ('k') | webrtc/base/base64_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/base64.cc
diff --git a/webrtc/base/base64.cc b/webrtc/base/base64.cc
index 8fa1c818fa3a467699f90cb9112db955cf31b86c..43b63257a663f2abfae3da29483e7625b46b1b39 100644
--- a/webrtc/base/base64.cc
+++ b/webrtc/base/base64.cc
@@ -74,7 +74,7 @@ bool Base64::IsBase64Char(char ch) {
}
bool Base64::GetNextBase64Char(char ch, char* next_ch) {
- if (next_ch == NULL) {
+ if (next_ch == nullptr) {
return false;
}
const char* p = strchr(Base64Table, ch);
@@ -96,7 +96,7 @@ bool Base64::IsBase64Encoded(const std::string& str) {
void Base64::EncodeFromArray(const void* data,
size_t len,
std::string* result) {
- RTC_DCHECK(NULL != result);
+ RTC_DCHECK(nullptr != result);
result->clear();
result->resize(((len + 2) / 3) * 4);
const unsigned char* byte_data = static_cast<const unsigned char*>(data);
@@ -224,7 +224,7 @@ bool Base64::DecodeFromArrayTemplate(const char* data,
DecodeFlags flags,
T* result,
size_t* data_used) {
- RTC_DCHECK(NULL != result);
+ RTC_DCHECK(nullptr != result);
RTC_DCHECK(flags <= (DO_PARSE_MASK | DO_PAD_MASK | DO_TERM_MASK));
const DecodeFlags parse_flags = flags & DO_PARSE_MASK;
« no previous file with comments | « webrtc/base/base64.h ('k') | webrtc/base/base64_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698