summaryrefslogtreecommitdiff
path: root/src/lib/dcp_subtitle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 21:53:32 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 00:27:08 +0100
commit8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch)
tree40da87cb357e8b1c54a1464bdbac2d014640e30c /src/lib/dcp_subtitle.cc
parentcec6ff92aef45c687085ecfc1059004407c18c57 (diff)
Replace String::compose with fmt::format().
Diffstat (limited to 'src/lib/dcp_subtitle.cc')
-rw-r--r--src/lib/dcp_subtitle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcp_subtitle.cc b/src/lib/dcp_subtitle.cc
index c2d390b55..f43208b5d 100644
--- a/src/lib/dcp_subtitle.cc
+++ b/src/lib/dcp_subtitle.cc
@@ -21,9 +21,9 @@
#include "dcp_subtitle.h"
#include "exceptions.h"
-#include "compose.hpp"
#include <dcp/interop_text_asset.h>
#include <dcp/smpte_text_asset.h>
+#include <fmt/format.h>
#include <memory>
#include "i18n.h"
@@ -57,7 +57,7 @@ DCPSubtitle::load (boost::filesystem::path file) const
}
if (!sc) {
- throw FileError(String::compose(_("Could not read subtitles (%1 / %2)"), interop_error, smpte_error), file);
+ throw FileError(fmt::format(_("Could not read subtitles ({} / {})"), interop_error, smpte_error), file);
}
return sc;