diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-02-15 21:14:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-16 22:21:37 +0100 |
commit | 7bd409dbdf0c60365da0efa642924c85e3051efe (patch) | |
tree | 4031d76a91ed7e5c7000dd9eeabfa02313f15d56 | |
parent | 727fbca1a69b5364f7c40df90977131abbb6050b (diff) | |
download | serenity-7bd409dbdf0c60365da0efa642924c85e3051efe.zip |
LibELF: Use StringBuilder::string_view() to avoid String allocation
-rw-r--r-- | Userland/Libraries/LibELF/Image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibELF/Image.cpp b/Userland/Libraries/LibELF/Image.cpp index ac865222bb..53ea48a304 100644 --- a/Userland/Libraries/LibELF/Image.cpp +++ b/Userland/Libraries/LibELF/Image.cpp @@ -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 {}; |