mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:48: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
|
@ -156,12 +156,12 @@ Optional<DebugInfo::SourcePositionAndAddress> DebugInfo::get_address_from_source
|
|||
{
|
||||
String file_path = file;
|
||||
if (!file_path.starts_with("/"))
|
||||
file_path = String::format("/%s", file_path.characters());
|
||||
file_path = String::formatted("/{}", file_path);
|
||||
|
||||
constexpr char SERENITY_LIBS_PREFIX[] = "/usr/src/serenity";
|
||||
if (file.starts_with(SERENITY_LIBS_PREFIX)) {
|
||||
file_path = file.substring(sizeof(SERENITY_LIBS_PREFIX), file.length() - sizeof(SERENITY_LIBS_PREFIX));
|
||||
file_path = String::format("../%s", file_path.characters());
|
||||
file_path = String::formatted("../{}", file_path);
|
||||
}
|
||||
|
||||
Optional<SourcePositionAndAddress> result;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue