mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibCore: Use a StringView for the file path in File::remove
This allows us to use our nice syscall wrappers, avoids some accidental string copying, and starts to unlink us from the old DeprecatedString.
This commit is contained in:
parent
9805f73704
commit
8455d58a44
Notes:
sideshowbarker
2024-07-17 06:28:38 +09:00
Author: https://github.com/timschumi
Commit: 8455d58a44
Pull-request: https://github.com/SerenityOS/serenity/pull/16636
4 changed files with 8 additions and 14 deletions
|
@ -133,7 +133,7 @@ static TitleAndText build_cpu_registers(const ELF::Core::ThreadInfo& thread_info
|
|||
};
|
||||
}
|
||||
|
||||
static void unlink_coredump(StringView const& coredump_path)
|
||||
static void unlink_coredump(StringView coredump_path)
|
||||
{
|
||||
if (Core::File::remove(coredump_path, Core::File::RecursionMode::Disallowed).is_error())
|
||||
dbgln("Failed deleting coredump file");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue