diff options
author | 2015-04-21 16:50:40 -0700 | |
---|---|---|
committer | 2015-04-22 12:44:27 -0700 | |
commit | 2cebb24bfc3247d3e9be138a3350106737455918 (patch) | |
tree | d04d27d21b3c7733d784e303f01f873bb99e7770 /runtime/elf_file_impl.h | |
parent | 1f02f1a7b3073b8fef07770a67fbf94afad317f0 (diff) |
Replace NULL with nullptr
Also fixed some lines that were too long, and a few other minor
details.
Change-Id: I6efba5fb6e03eb5d0a300fddb2a75bf8e2f175cb
Diffstat (limited to 'runtime/elf_file_impl.h')
-rw-r--r-- | runtime/elf_file_impl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/elf_file_impl.h b/runtime/elf_file_impl.h index 047849a695..80950c6197 100644 --- a/runtime/elf_file_impl.h +++ b/runtime/elf_file_impl.h @@ -94,8 +94,7 @@ class ElfFileImpl { const std::string& symbol_name, bool build_map); - // Lookup a string given string section and offset. Returns nullptr for - // special 0 offset. + // Lookup a string given string section and offset. Returns null for special 0 offset. const char* GetString(Elf_Shdr&, Elf_Word) const; Elf_Word GetDynamicNum() const; @@ -167,7 +166,7 @@ class ElfFileImpl { // Check whether the offset is in range, and set to target to Begin() + offset if OK. bool CheckAndSet(Elf32_Off offset, const char* label, uint8_t** target, std::string* error_msg); - // Find symbol in specified table, returning nullptr if it is not found. + // Find symbol in specified table, returning null if it is not found. // // If build_map is true, builds a map to speed repeated access. The // map does not included untyped symbol values (aka STT_NOTYPE) @@ -184,7 +183,7 @@ class ElfFileImpl { Elf_Dyn* FindDynamicByType(Elf_Sword type) const; Elf_Word FindDynamicValueByType(Elf_Sword type) const; - // Lookup a string by section type. Returns nullptr for special 0 offset. + // Lookup a string by section type. Returns null for special 0 offset. const char* GetString(Elf_Word section_type, Elf_Word) const; const File* const file_; |