summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.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/dcp_content.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/dcp_content.cc')
-rw-r--r--src/lib/dcp_content.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc
index aa92567ac..c04bbc2e9 100644
--- a/src/lib/dcp_content.cc
+++ b/src/lib/dcp_content.cc
@@ -74,7 +74,7 @@ DCPContent::DCPContent (boost::filesystem::path p)
, _reference_audio (false)
, _three_d (false)
{
- LOG_GENERAL ("Creating DCP content from %1", p.string());
+ LOG_GENERAL ("Creating DCP content from {}", p.string());
read_directory (p);
set_default_colour_conversion ();
@@ -202,21 +202,21 @@ DCPContent::read_sub_directory (boost::filesystem::path p)
{
using namespace boost::filesystem;
- LOG_GENERAL ("DCPContent::read_sub_directory reads %1", p.string());
+ LOG_GENERAL ("DCPContent::read_sub_directory reads {}", p.string());
try {
for (auto i: directory_iterator(p)) {
if (is_regular_file(i.path())) {
- LOG_GENERAL ("Inside there's regular file %1", i.path().string());
+ LOG_GENERAL ("Inside there's regular file {}", i.path().string());
add_path (i.path());
} else if (is_directory(i.path()) && i.path().filename() != ".AppleDouble") {
- LOG_GENERAL ("Inside there's directory %1", i.path().string());
+ LOG_GENERAL ("Inside there's directory {}", i.path().string());
read_sub_directory (i.path());
} else {
- LOG_GENERAL("Ignoring %1 from inside: status is %2", i.path().string(), static_cast<int>(status(i.path()).type()));
+ LOG_GENERAL("Ignoring {} from inside: status is {}", i.path().string(), static_cast<int>(status(i.path()).type()));
}
}
} catch (exception& e) {
- LOG_GENERAL("Failed to iterate over %1: %2", p.string(), e.what());
+ LOG_GENERAL("Failed to iterate over {}: {}", p.string(), e.what());
}
}
@@ -353,7 +353,7 @@ string
DCPContent::summary () const
{
boost::mutex::scoped_lock lm (_mutex);
- return String::compose (_("%1 [DCP]"), _name);
+ return fmt::format(_("{} [DCP]"), _name);
}
string
@@ -750,7 +750,7 @@ DCPContent::can_reference_audio (shared_ptr<const Film> film, string& why_not) c
if (audio && audio->stream()) {
auto const channels = audio->stream()->channels();
if (channels != film->audio_channels()) {
- why_not = String::compose(_("it has a different number of audio channels than the project; set the project to have %1 channels."), channels);
+ why_not = fmt::format(_("it has a different number of audio channels than the project; set the project to have {} channels."), channels);
return false;
}
}