From 94b247c5a945860b359f63b7fea172328e6181cf Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 17 Apr 2021 00:48:43 +0200 Subject: LibELF: Make get_library_name() take String instead of StringView --- Userland/Libraries/LibELF/DynamicLinker.cpp | 4 ++-- 1 file 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 get_dependencies(const String& name) -- cgit v1.2.3