diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-17 00:48:43 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-17 01:27:31 +0200 |
commit | 94b247c5a945860b359f63b7fea172328e6181cf (patch) | |
tree | 24fb8aa6bcecd4a1b327b136597c68c4415d3487 | |
parent | a1a6d30b54a672b84b2b3063052bcc40324a1b83 (diff) | |
download | serenity-94b247c5a945860b359f63b7fea172328e6181cf.zip |
LibELF: Make get_library_name() take String instead of StringView
-rw-r--r-- | Userland/Libraries/LibELF/DynamicLinker.cpp | 4 |
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) |