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:
parent
9805f73704
commit
8455d58a44
4 changed files with 8 additions and 14 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue