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

Side by Side Diff: util/mac/mach_o_image_symbol_table_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 unified diff | Download patch
« no previous file with comments | « util/mac/mach_o_image_symbol_table_reader.h ('k') | util/mac/process_reader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 return true; 259 return true;
260 } 260 }
261 261
262 const MachOImageSymbolTableReader::SymbolInformation* 262 const MachOImageSymbolTableReader::SymbolInformation*
263 MachOImageSymbolTableReader::LookUpExternalDefinedSymbol( 263 MachOImageSymbolTableReader::LookUpExternalDefinedSymbol(
264 const std::string& name) const { 264 const std::string& name) const {
265 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 265 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
266 266
267 const auto& iterator = external_defined_symbols_.find(name); 267 const auto& iterator = external_defined_symbols_.find(name);
268 if (iterator == external_defined_symbols_.end()) { 268 if (iterator == external_defined_symbols_.end()) {
269 return NULL; 269 return nullptr;
270 } 270 }
271 return &iterator->second; 271 return &iterator->second;
272 } 272 }
273 273
274 } // namespace crashpad 274 } // namespace crashpad
OLDNEW
« no previous file with comments | « util/mac/mach_o_image_symbol_table_reader.h ('k') | util/mac/process_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698