From 62c34b28567a097e8f22576e7d7891bd3dbe0ac0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 9 Jul 2025 22:53:27 +0200 Subject: 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 --- src/tools/dcpomatic_server_cli.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/dcpomatic_server_cli.cc') diff --git a/src/tools/dcpomatic_server_cli.cc b/src/tools/dcpomatic_server_cli.cc index ea78d41a5..a20b14f68 100644 --- a/src/tools/dcpomatic_server_cli.cc +++ b/src/tools/dcpomatic_server_cli.cc @@ -56,7 +56,7 @@ static void help (string n) { cerr << "Syntax: " << n << " [OPTION]\n" - << variant::insert_dcpomatic(" -v, --version show %1 version\n") + << variant::insert_dcpomatic(" -v, --version show {} version\n") << " -h, --help show this help\n" << " -t, --threads number of parallel encoding threads to use\n" << " --verbose be verbose to stdout\n" @@ -127,7 +127,7 @@ main (int argc, char* argv[]) server.run (); } catch (boost::system::system_error& e) { if (e.code() == boost::system::errc::address_in_use) { - cerr << program_name << variant::insert_dcpomatic(": address already in use. Is another %1 server instance already running?\n"); + cerr << program_name << variant::insert_dcpomatic(": address already in use. Is another {} server instance already running?\n"); exit (EXIT_FAILURE); } cerr << program_name << ": " << e.what() << "\n"; -- cgit v1.2.3