summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-04-17 00:48:43 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-17 01:27:31 +0200
commit94b247c5a945860b359f63b7fea172328e6181cf (patch)
tree24fb8aa6bcecd4a1b327b136597c68c4415d3487
parenta1a6d30b54a672b84b2b3063052bcc40324a1b83 (diff)
downloadserenity-94b247c5a945860b359f63b7fea172328e6181cf.zip
LibELF: Make get_library_name() take String instead of StringView
-rw-r--r--Userland/Libraries/LibELF/DynamicLinker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLinker.cpp b/Userland/Libraries/LibELF/DynamicLinker.cpp
index 4cea6eed67..56d538155b 100644
--- a/Userland/Libraries/LibELF/DynamicLinker.cpp
+++ b/Userland/Libraries/LibELF/DynamicLinker.cpp
@@ -113,9 +113,9 @@ static void map_library(const String& name)
VERIFY_NOT_REACHED();
}
-static String get_library_name(const StringView& path)
+static String get_library_name(String path)
{
- return LexicalPath(path).basename();
+ return LexicalPath(move(path)).basename();
}
static Vector<String> get_dependencies(const String& name)