mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibELF: Use StringBuilder::string_view() to avoid String allocation
This commit is contained in:
parent
727fbca1a6
commit
7bd409dbdf
Notes:
sideshowbarker
2024-07-17 18:41:03 +09:00
Author: https://github.com/IdanHo
Commit: 7bd409dbdf
Pull-request: https://github.com/SerenityOS/serenity/pull/12564
Reviewed-by: https://github.com/MaxWipfli
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(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 {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue