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
Notes: sideshowbarker 2024-07-18 19:32:28 +09:00

View file

@ -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)