mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:27:43 +00:00
LibELF: Use StringBuilder::string_view() to avoid String allocation
This commit is contained in:
parent
727fbca1a6
commit
7bd409dbdf
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ Optional<Image::RelocationSection> Image::Section::relocations() const
|
||||||
builder.append(".rel"sv);
|
builder.append(".rel"sv);
|
||||||
builder.append(name());
|
builder.append(name());
|
||||||
|
|
||||||
auto relocation_section = m_image.lookup_section(builder.to_string());
|
auto relocation_section = m_image.lookup_section(builder.string_view());
|
||||||
if (!relocation_section.has_value())
|
if (!relocation_section.has_value())
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue