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

Unified Diff: util/mac/mach_o_image_reader.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/mac/mach_o_image_reader.h ('k') | util/mac/mach_o_image_reader_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/mach_o_image_reader.cc
diff --git a/util/mac/mach_o_image_reader.cc b/util/mac/mach_o_image_reader.cc
index 25e279c7be0a86e995f5498f4dc5125afc85e1fc..f911ec67e465b2285efb5da892a2d91fe616c99f 100644
--- a/util/mac/mach_o_image_reader.cc
+++ b/util/mac/mach_o_image_reader.cc
@@ -50,7 +50,7 @@ MachOImageReader::MachOImageReader()
dysymtab_command_(),
symbol_table_(),
id_dylib_command_(),
- process_reader_(NULL),
+ process_reader_(nullptr),
file_type_(0),
initialized_(),
symbol_table_initialized_() {
@@ -301,7 +301,7 @@ const MachOImageSegmentReader* MachOImageReader::GetSegmentByName(
const auto& iterator = segment_map_.find(segment_name);
if (iterator == segment_map_.end()) {
- return NULL;
+ return nullptr;
}
const MachOImageSegmentReader* segment = segments_[iterator->second];
@@ -316,7 +316,7 @@ const process_types::section* MachOImageReader::GetSectionByName(
const MachOImageSegmentReader* segment = GetSegmentByName(segment_name);
if (!segment) {
- return NULL;
+ return nullptr;
}
return segment->GetSectionByName(section_name, address);
@@ -331,7 +331,7 @@ const process_types::section* MachOImageReader::GetSectionAtIndex(
static_assert(NO_SECT == 0, "NO_SECT must be zero");
if (index == NO_SECT) {
LOG(WARNING) << "section index " << index << " out of range";
- return NULL;
+ return nullptr;
}
// Switch to a more comfortable 0-based index.
@@ -354,7 +354,7 @@ const process_types::section* MachOImageReader::GetSectionAtIndex(
}
LOG(WARNING) << "section index " << index << " out of range";
- return NULL;
+ return nullptr;
}
bool MachOImageReader::LookUpExternalDefinedSymbol(
« no previous file with comments | « util/mac/mach_o_image_reader.h ('k') | util/mac/mach_o_image_reader_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698