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

Unified Diff: webrtc/base/checks.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/checks.h ('k') | webrtc/base/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/checks.cc
diff --git a/webrtc/base/checks.cc b/webrtc/base/checks.cc
index 6aaaf9ff83bee8cb70452c0be1b864c40f6eb0b5..32c2f58373658bf985d28b1e122bc0b42b044c54 100644
--- a/webrtc/base/checks.cc
+++ b/webrtc/base/checks.cc
@@ -67,7 +67,7 @@ void DumpBacktrace() {
PrintError("\n==== C stack trace ===============================\n\n");
if (size == 0) {
PrintError("(empty)\n");
- } else if (symbols == NULL) {
+ } else if (symbols == nullptr) {
PrintError("(no symbols)\n");
} else {
for (int i = 1; i < size; ++i) {
@@ -76,8 +76,9 @@ void DumpBacktrace() {
PrintError("%2d: ", i);
int status;
size_t length;
- char* demangled = abi::__cxa_demangle(mangled, NULL, &length, &status);
- PrintError("%s\n", demangled != NULL ? demangled : mangled);
+ char* demangled =
+ abi::__cxa_demangle(mangled, nullptr, &length, &status);
+ PrintError("%s\n", demangled != nullptr ? demangled : mangled);
free(demangled);
} else {
// If parsing failed, at least print the unparsed symbol.
« no previous file with comments | « webrtc/base/checks.h ('k') | webrtc/base/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698