diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 22:27:15 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:01 +0200 |
commit | 7747bfe5c0cd7e43390baf3cd73d203985687f41 (patch) | |
tree | f9a5a2ffb869da7bad7b489cf9af7850652069df /Userland/DevTools | |
parent | 2a6a54dea5d5711288de67f0081da312488039d9 (diff) | |
download | serenity-7747bfe5c0cd7e43390baf3cd73d203985687f41.zip |
HackStudio: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/DevTools')
-rw-r--r-- | Userland/DevTools/HackStudio/ProjectTemplate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/DevTools/HackStudio/ProjectTemplate.cpp b/Userland/DevTools/HackStudio/ProjectTemplate.cpp index 5b2c413980..6c39ffe76f 100644 --- a/Userland/DevTools/HackStudio/ProjectTemplate.cpp +++ b/Userland/DevTools/HackStudio/ProjectTemplate.cpp @@ -250,9 +250,9 @@ bool copy_directory(String src_path, String dst_path, bool link) } String src_rp = Core::File::real_path_for(src_path); - src_rp = String::format("%s/", src_rp.characters()); + src_rp = String::formatted("{}/", src_rp); String dst_rp = Core::File::real_path_for(dst_path); - dst_rp = String::format("%s/", dst_rp.characters()); + dst_rp = String::formatted("{}/", dst_rp); if (!dst_rp.is_empty() && dst_rp.starts_with(src_rp)) { fprintf(stderr, "cp: Cannot copy %s into itself (%s)\n", @@ -268,8 +268,8 @@ bool copy_directory(String src_path, String dst_path, bool link) while (di.has_next()) { String filename = di.next_path(); bool is_copied = copy_file_or_directory( - String::format("%s/%s", src_path.characters(), filename.characters()), - String::format("%s/%s", dst_path.characters(), filename.characters()), + String::formatted("{}/{}", src_path, filename), + String::formatted("{}/{}", dst_path, filename), true, link); if (!is_copied) { return false; |