1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:28:12 +00:00

LibELF: Use StringBuilder::string_view() to avoid String allocation

This commit is contained in:
Idan Horowitz 2022-02-15 21:14:15 +02:00 committed by Andreas Kling
parent 727fbca1a6
commit 7bd409dbdf

View file

@ -251,7 +251,7 @@ Optional<Image::RelocationSection> Image::Section::relocations() const
builder.append(".rel"sv);
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())
return {};