1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

LibELF: Make get_library_name() take String instead of StringView

This commit is contained in:
Andreas Kling 2021-04-17 00:48:43 +02:00
parent a1a6d30b54
commit 94b247c5a9

View file

@ -113,9 +113,9 @@ static void map_library(const String& name)
VERIFY_NOT_REACHED(); 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) static Vector<String> get_dependencies(const String& name)