diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:34:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:02 +0200 |
commit | 83d3003208eb329457c65ba07c67fa76468d277b (patch) | |
tree | be29833bfebbbba5a6b076c968cef04b33eb714f /Userland/Libraries/LibDebug/DebugInfo.cpp | |
parent | f4eff7df8f413f1bc39c34da7d919bd3c42fc1c6 (diff) | |
download | serenity-83d3003208eb329457c65ba07c67fa76468d277b.zip |
LibDebug: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries/LibDebug/DebugInfo.cpp')
-rw-r--r-- | Userland/Libraries/LibDebug/DebugInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibDebug/DebugInfo.cpp b/Userland/Libraries/LibDebug/DebugInfo.cpp index f49f799796..b6b86e15e1 100644 --- a/Userland/Libraries/LibDebug/DebugInfo.cpp +++ b/Userland/Libraries/LibDebug/DebugInfo.cpp @@ -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; |