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

Unified Diff: util/mach/symbolic_constants_mach.cc

Issue 656703002: Convert NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Fix 80-column violations Created 6 years, 2 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 | « util/mach/mach_message_server.cc ('k') | util/mach/symbolic_constants_mach_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mach/symbolic_constants_mach.cc
diff --git a/util/mach/symbolic_constants_mach.cc b/util/mach/symbolic_constants_mach.cc
index 827555d0d048269f7bed58efcd0fbb0ae48a7fba..066ed8b44af54bdccbc90387def474edaaed94a0 100644
--- a/util/mach/symbolic_constants_mach.cc
+++ b/util/mach/symbolic_constants_mach.cc
@@ -25,7 +25,7 @@
namespace {
const char* kExceptionNames[] = {
- NULL,
+ nullptr,
// sed -Ene 's/^#define[[:space:]]EXC_([[:graph:]]+)[[:space:]]+[[:digit:]]{1,2}([[:space:]]|$).*/ "\1",/p'
// /usr/include/mach/exception_types.h
@@ -49,7 +49,7 @@ const char kExcPrefix[] = "EXC_";
const char kExcMaskPrefix[] = "EXC_MASK_";
const char* kBehaviorNames[] = {
- NULL,
+ nullptr,
// sed -Ene 's/^# define[[:space:]]EXCEPTION_([[:graph:]]+)[[:space:]]+[[:digit:]]{1,2}([[:space:]]|$).*/ "\1",/p'
// /usr/include/mach/exception_types.h
@@ -110,12 +110,12 @@ const char* kFlavorNames[] = {
"THREAD_STATE_NONE",
"ARM_THREAD_STATE64",
"ARM_EXCEPTION_STATE64",
- NULL,
+ nullptr,
"ARM_THREAD_STATE32",
- NULL,
- NULL,
- NULL,
- NULL,
+ nullptr,
+ nullptr,
+ nullptr,
+ nullptr,
"ARM_DEBUG_STATE32",
"ARM_DEBUG_STATE64",
"ARM_NEON_STATE",
@@ -194,7 +194,7 @@ std::string ExceptionToString(exception_type_t exception,
const char* exception_name =
static_cast<size_t>(exception) < arraysize(kExceptionNames)
? kExceptionNames[exception]
- : NULL;
+ : nullptr;
if (!exception_name) {
if (options & kUnknownIsNumeric) {
return base::StringPrintf("%d", exception);
@@ -363,7 +363,7 @@ std::string ExceptionBehaviorToString(exception_behavior_t behavior,
const char* behavior_name =
static_cast<size_t>(basic_behavior) < arraysize(kBehaviorNames)
? kBehaviorNames[basic_behavior]
- : NULL;
+ : nullptr;
if (!behavior_name) {
if (options & kUnknownIsNumeric) {
return base::StringPrintf("%#x", behavior);
@@ -465,7 +465,7 @@ std::string ThreadStateFlavorToString(thread_state_flavor_t flavor,
const char* flavor_name =
static_cast<size_t>(flavor) < arraysize(kFlavorNames)
? kFlavorNames[flavor]
- : NULL;
+ : nullptr;
if (!flavor_name) {
for (size_t generic_flavor_index = 0;
« no previous file with comments | « util/mach/mach_message_server.cc ('k') | util/mach/symbolic_constants_mach_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698