OLD | NEW |
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 Loading... |
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 |
OLD | NEW |