summaryrefslogtreecommitdiff
path: root/src/lib/uploader.cc
diff options
context:
space:
mode:
authorcah <cth@carlh.net>2025-07-10 22:47:19 +0200
committercah <cth@carlh.net>2025-07-10 22:47:19 +0200
commit4be4e97abf911e7633172ada950d107a3ed28834 (patch)
treec9deceb5f3684fa081db0613da88264732093fcb /src/lib/uploader.cc
parent727c1aa7da8b325dfa38c8443b1dd356acaf6ec3 (diff)
parent42bde2d97039f6d0d645d83db90612d18ebf225a (diff)
Merge branch 'compose-to-fmt-take2'
This removes all uses of String::compose, replacing them with fmt and updating the i18n strings where required.
Diffstat (limited to 'src/lib/uploader.cc')
-rw-r--r--src/lib/uploader.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/uploader.cc b/src/lib/uploader.cc
index f2a47f50e..1e879804a 100644
--- a/src/lib/uploader.cc
+++ b/src/lib/uploader.cc
@@ -21,14 +21,14 @@
#include "uploader.h"
#include "dcpomatic_assert.h"
-#include "compose.hpp"
+#include <memory>
#include "i18n.h"
-using std::string;
-using std::shared_ptr;
using std::function;
+using std::shared_ptr;
+using std::string;
Uploader::Uploader (function<void (string)> set_status, function<void (float)> set_progress)
@@ -76,7 +76,7 @@ Uploader::upload_directory (boost::filesystem::path base, boost::filesystem::pat
if (is_directory(i.path())) {
upload_directory (base, i.path(), transferred, total_size);
} else {
- _set_status(String::compose(_("copying %1"), i.path().filename()));
+ _set_status(fmt::format(_("copying {}"), i.path().filename().string()));
upload_file (i.path(), remove_prefix (base, i.path()), transferred, total_size);
}
}