mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:47:35 +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
|
@ -191,7 +191,7 @@ void RemoteProcess::update()
|
|||
}
|
||||
};
|
||||
|
||||
auto success = m_socket->connect(Core::SocketAddress::local(String::format("/tmp/rpc/%d", m_pid)));
|
||||
auto success = m_socket->connect(Core::SocketAddress::local(String::formatted("/tmp/rpc/{}", m_pid)));
|
||||
if (!success) {
|
||||
warnln("Couldn't connect to PID {}", m_pid);
|
||||
exit(1);
|
||||
|
|
|
@ -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