1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:47:45 +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:
Tim Schumacher 2022-12-23 14:33:05 +01:00 committed by Tim Flynn
parent 9805f73704
commit 8455d58a44
4 changed files with 8 additions and 14 deletions

View file

@ -49,7 +49,7 @@ TempFile::~TempFile()
if (m_type == Type::Directory)
recursion_allowed = File::RecursionMode::Allowed;
auto rc = File::remove(m_path.characters(), recursion_allowed);
auto rc = File::remove(m_path, recursion_allowed);
if (rc.is_error()) {
warnln("File::remove failed: {}", rc.error().string_literal());
}