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 /test/ffmpeg_encoder_test.cc | |
| parent | bb07c53c501365b6380ae2c7e1a149b955d13d4d (diff) | |
Replace String::compose with fmt.
Diffstat (limited to 'test/ffmpeg_encoder_test.cc')
| -rw-r--r-- | test/ffmpeg_encoder_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ffmpeg_encoder_test.cc b/test/ffmpeg_encoder_test.cc index 0a48cd745..4e5ef924e 100644 --- a/test/ffmpeg_encoder_test.cc +++ b/test/ffmpeg_encoder_test.cc @@ -20,7 +20,6 @@ #include "lib/audio_content.h" -#include "lib/compose.hpp" #include "lib/config.h" #include "lib/constants.h" #include "lib/content_factory.h" @@ -40,6 +39,7 @@ #include "test.h" #include <dcp/file.h> #include <dcp/raw_convert.h> +#include <fmt/format.h> #include <boost/test/unit_test.hpp> @@ -77,7 +77,7 @@ ffmpeg_content_test (int number, boost::filesystem::path content, ExportFormat f BOOST_REQUIRE (false); } - name = String::compose("%1_test%2", name, number); + name = fmt::format("{}_test{}", name, number); auto c = make_shared<FFmpegContent>(content); auto film = new_test_film(name, {c}, &cl); @@ -86,7 +86,7 @@ ffmpeg_content_test (int number, boost::filesystem::path content, ExportFormat f film->write_metadata (); auto job = make_shared<TranscodeJob>(film, TranscodeJob::ChangedBehaviour::IGNORE); - auto file = boost::filesystem::path("build") / "test" / String::compose("%1.%2", name, extension); + auto file = boost::filesystem::path("build") / "test" / fmt::format("{}.{}", name, extension); cl.add (file); FFmpegFilmEncoder encoder(film, job, file, format, false, false, false, 23); encoder.go (); |
