diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-23 21:53:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:27:08 +0100 |
| commit | 8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch) | |
| tree | 40da87cb357e8b1c54a1464bdbac2d014640e30c /src/lib/dcp_content.cc | |
| parent | cec6ff92aef45c687085ecfc1059004407c18c57 (diff) | |
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/dcp_content.cc')
| -rw-r--r-- | src/lib/dcp_content.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 5e30dfc18..1400f8361 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -21,7 +21,6 @@ #include "atmos_content.h" #include "audio_content.h" -#include "compose.hpp" #include "config.h" #include "dcp_content.h" #include "dcp_decoder.h" @@ -84,7 +83,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 (); @@ -209,21 +208,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()); } } @@ -359,7 +358,7 @@ string DCPContent::summary () const { boost::mutex::scoped_lock lm (_mutex); - return String::compose (_("%1 [DCP]"), _name); + return fmt::format(_("{} [DCP]"), _name); } string @@ -751,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; } } |
