mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibDebug: Convert String::format() => String::formatted()
This commit is contained in:
parent
f4eff7df8f
commit
83d3003208
2 changed files with 4 additions and 4 deletions
|
@ -411,7 +411,7 @@ Optional<DebugSession::InsertBreakpointAtSourcePositionResult> DebugSession::ins
|
|||
|
||||
void DebugSession::update_loaded_libs()
|
||||
{
|
||||
auto file = Core::File::construct(String::format("/proc/%u/vm", m_debuggee_pid));
|
||||
auto file = Core::File::construct(String::formatted("/proc/{}/vm", m_debuggee_pid));
|
||||
bool rc = file->open(Core::IODevice::ReadOnly);
|
||||
VERIFY(rc);
|
||||
|
||||
|
@ -432,7 +432,7 @@ void DebugSession::update_loaded_libs()
|
|||
auto lib_name = result.capture_group_matches.at(0).at(0).view.u8view().to_string();
|
||||
if (lib_name.starts_with("/"))
|
||||
return lib_name;
|
||||
return String::format("/usr/lib/%s", lib_name.characters());
|
||||
return String::formatted("/usr/lib/{}", lib_name);
|
||||
};
|
||||
|
||||
vm_entries.for_each([&](auto& entry) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue