LibELF: Make get_library_name() take String instead of StringView
This commit is contained in:
parent
a1a6d30b54
commit
94b247c5a9
Notes:
sideshowbarker
2024-07-18 19:32:28 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/94b247c5a94
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue