diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-02-11 00:33:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-02-11 00:33:08 +0100 |
| commit | 7ded049db41c625abac4dc48495ea096bae55c40 (patch) | |
| tree | 9b273224f450fcd78fe44837f11c19df7179dea4 | |
| parent | 7a13aa27eebee6bee09bf718a2a1a46d1bf2cf88 (diff) | |
Replace compose with fmt.
| -rw-r--r-- | src/lib/text_type.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/text_type.cc b/src/lib/text_type.cc index 99799abcd..22bbf57e4 100644 --- a/src/lib/text_type.cc +++ b/src/lib/text_type.cc @@ -19,12 +19,12 @@ */ -#include "compose.hpp" #include "dcpomatic_assert.h" #include "exceptions.h" #include "text_type.h" #include "types.h" #include <dcp/text_type.h> +#include <fmt/format.h> #include "i18n.h" @@ -46,7 +46,7 @@ string_to_text_type(string s) } else if (s == "closed-caption") { return TextType::CLOSED_CAPTION; } else { - throw MetadataError(String::compose("Unknown text type %1", s)); + throw MetadataError(fmt::format("Unknown text type {}", s)); } } |
