mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +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
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