summaryrefslogtreecommitdiff
path: root/src/lib/config.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-09 22:53:27 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-10 20:50:32 +0200
commit62c34b28567a097e8f22576e7d7891bd3dbe0ac0 (patch)
tree2a0440ed2bdb58c608582b75da6c877527dd6bda /src/lib/config.cc
parent2c499921a9f8615c8368d8161cb43c9a93c67311 (diff)
Replace String::compose with fmt.
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
Diffstat (limited to 'src/lib/config.cc')
-rw-r--r--src/lib/config.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index f2362e1a1..61bf95ac4 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -276,7 +276,7 @@ Config::backup()
auto copy_adding_number = [](path const& path_to_copy) {
auto add_number = [](path const& path, int number) {
- return String::compose("%1.%2", path.string(), number);
+ return fmt::format("{}.{}", path.string(), number);
};
int n = 1;
@@ -438,7 +438,7 @@ try
_kdm_bcc = f.optional_string_child("KDMBCC").get_value_or("");
_kdm_email = f.string_child("KDMEmail");
- _notification_subject = f.optional_string_child("NotificationSubject").get_value_or(variant::insert_dcpomatic(_("%1 notification")));
+ _notification_subject = f.optional_string_child("NotificationSubject").get_value_or(variant::insert_dcpomatic(_("{} notification")));
_notification_from = f.optional_string_child("NotificationFrom").get_value_or("");
_notification_to = f.optional_string_child("NotificationTo").get_value_or("");
for (auto i: f.node_children("NotificationCC")) {
@@ -1241,14 +1241,14 @@ Config::set_kdm_email_to_default()
"Cinema: $CINEMA_NAME\n"
"Screen(s): $SCREENS\n\n"
"The KDMs are valid from $START_TIME until $END_TIME.\n\n"
- "Best regards,\n%1"
+ "Best regards,\n{}"
));
}
void
Config::set_notification_email_to_default()
{
- _notification_subject = variant::insert_dcpomatic(_("%1 notification"));
+ _notification_subject = variant::insert_dcpomatic(_("{} notification"));
_notification_email = _(
"$JOB_NAME: $JOB_STATUS"