mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Userland: Avoid some now-unneeded explicit conversions to Bytes
This commit is contained in:
parent
e0bddbb65e
commit
c23060e21b
Notes:
sideshowbarker
2024-07-17 01:51:00 +09:00
Author: https://github.com/trflynn89
Commit: c23060e21b
Pull-request: https://github.com/SerenityOS/serenity/pull/23830
Reviewed-by: https://github.com/shannonbooth ✅
15 changed files with 39 additions and 40 deletions
|
@ -178,10 +178,10 @@ ErrorOr<void> ConfigFile::sync()
|
|||
TRY(m_file->seek(0, SeekMode::SetPosition));
|
||||
|
||||
for (auto& it : m_groups) {
|
||||
TRY(m_file->write_until_depleted(ByteString::formatted("[{}]\n", it.key).bytes()));
|
||||
TRY(m_file->write_until_depleted(ByteString::formatted("[{}]\n", it.key)));
|
||||
for (auto& jt : it.value)
|
||||
TRY(m_file->write_until_depleted(ByteString::formatted("{}={}\n", jt.key, jt.value).bytes()));
|
||||
TRY(m_file->write_until_depleted("\n"sv.bytes()));
|
||||
TRY(m_file->write_until_depleted(ByteString::formatted("{}={}\n", jt.key, jt.value)));
|
||||
TRY(m_file->write_until_depleted("\n"sv));
|
||||
}
|
||||
|
||||
m_dirty = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue