diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-07-09 01:49:10 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-07-09 21:29:57 +0200 |
| commit | fe5bed524942c1ffc157f8a5ef59f5d291789891 (patch) | |
| tree | cf3ed3ed7672ab3c38673fa0d15927d80ed0c5d2 /src/lib/util.cc | |
| parent | bb07c53c501365b6380ae2c7e1a149b955d13d4d (diff) | |
Replace String::compose with fmt.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index eeab9f2d6..89f8b79d5 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -410,7 +410,7 @@ ffmpeg_log_callback(void* ptr, int level, const char* fmt, va_list vl) av_log_format_line(ptr, level, fmt, vl, line, sizeof(line), &prefix); string str(line); boost::algorithm::trim(str); - dcpomatic_log->log(String::compose("FFmpeg: %1", str), LogEntry::TYPE_GENERAL); + dcpomatic_log->log(fmt::format("FFmpeg: {}", str), LogEntry::TYPE_GENERAL); } @@ -462,7 +462,7 @@ LIBDCP_ENABLE_WARNINGS if (running_tests) { putenv("FONTCONFIG_PATH=fonts"); } else { - putenv(String::compose("FONTCONFIG_PATH=%1", resources_path().string()).c_str()); + putenv(fmt::format("FONTCONFIG_PATH={}", resources_path().string()).c_str()); } #endif @@ -1029,7 +1029,7 @@ start_of_thread(string) string error_details(boost::system::error_code ec) { - return String::compose("%1:%2:%3", ec.category().name(), ec.value(), ec.message()); + return fmt::format("{}:{}:{}", ec.category().name(), ec.value(), ec.message()); } |
