mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Everywhere: Use default StringView constructor over nullptr
While null StringViews are just as bad, these prevent the removal of StringView(char const*) as that constructor accepts a nullptr. No functional changes.
This commit is contained in:
parent
c8585b77d2
commit
fbc771efe9
16 changed files with 31 additions and 31 deletions
|
@ -163,7 +163,7 @@ StringView Image::table_string(unsigned table_index, unsigned offset) const
|
|||
VERIFY(m_valid);
|
||||
auto& sh = section_header(table_index);
|
||||
if (sh.sh_type != SHT_STRTAB)
|
||||
return nullptr;
|
||||
return {};
|
||||
size_t computed_offset = sh.sh_offset + offset;
|
||||
if (computed_offset >= m_size) {
|
||||
if (m_verbose_logging)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue