mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
Everywhere: Convert a handful of String::format() => formatted()
This commit is contained in:
parent
c90b7881a7
commit
c71807a3fc
23 changed files with 24 additions and 24 deletions
|
@ -44,7 +44,7 @@ NonnullOwnPtr<MmapRegion> MmapRegion::create_file_backed(u32 base, u32 size, u32
|
|||
auto region = adopt_own(*new MmapRegion(base, size, prot));
|
||||
region->m_file_backed = true;
|
||||
if (!name.is_empty()) {
|
||||
name = String::format("%s (Emulated)", name.characters());
|
||||
name = String::formatted("{} (Emulated)", name);
|
||||
region->m_name = name;
|
||||
}
|
||||
region->m_data = (u8*)mmap_with_name(nullptr, size, prot, flags, fd, offset, name.is_empty() ? nullptr : name.characters());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue