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/unzipper.cc | |
| parent | cec6ff92aef45c687085ecfc1059004407c18c57 (diff) | |
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/unzipper.cc')
| -rw-r--r-- | src/lib/unzipper.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/unzipper.cc b/src/lib/unzipper.cc index 8d468f24f..2f9510347 100644 --- a/src/lib/unzipper.cc +++ b/src/lib/unzipper.cc @@ -22,9 +22,11 @@ #include "dcpomatic_assert.h" #include "exceptions.h" #include "unzipper.h" +#include <dcp/array_data.h> #include <dcp/filesystem.h> #include <dcp/scope_guard.h> #include <zip.h> +#include <fmt/format.h> #include <boost/filesystem.hpp> #include <stdexcept> @@ -73,7 +75,7 @@ Unzipper::get(string const& filename) const { auto file = zip_fopen(_zip, filename.c_str(), 0); if (!file) { - throw runtime_error(String::compose(_("Could not find file %1 in ZIP file"), filename)); + throw runtime_error(fmt::format(_("Could not find file {} in ZIP file"), filename)); } dcp::ScopeGuard sg = [file]() { zip_fclose(file); }; |
