summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-02-15 21:14:15 +0200
committerAndreas Kling <kling@serenityos.org>2022-02-16 22:21:37 +0100
commit7bd409dbdf0c60365da0efa642924c85e3051efe (patch)
tree4031d76a91ed7e5c7000dd9eeabfa02313f15d56
parent727fbca1a69b5364f7c40df90977131abbb6050b (diff)
downloadserenity-7bd409dbdf0c60365da0efa642924c85e3051efe.zip
LibELF: Use StringBuilder::string_view() to avoid String allocation
-rw-r--r--Userland/Libraries/LibELF/Image.cpp2
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 {};