diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-01 14:08:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-01 20:51:21 +0100 |
| commit | c90d68049f56110436927aa847da882ee4b4f67c (patch) | |
| tree | 1a1b8ee748d40a76c6e99fdf12e3da3306df7c4e /src/reel_asset.cc | |
| parent | 68533f20f9f2e0ca9efc9360f20d047a79e4fd8a (diff) | |
Replace raw_convert<string> with direct calls to fmt.v1.10.3
Diffstat (limited to 'src/reel_asset.cc')
| -rw-r--r-- | src/reel_asset.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/reel_asset.cc b/src/reel_asset.cc index 1d3d1d1f..1b346da6 100644 --- a/src/reel_asset.cc +++ b/src/reel_asset.cc @@ -48,6 +48,7 @@ LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> using std::make_pair; @@ -102,12 +103,12 @@ ReelAsset::write_to_cpl(xmlpp::Element* node, Standard standard) const cxml::add_text_child(a, "AnnotationText", *_annotation_text); } cxml::add_text_child(a, "EditRate", _edit_rate.as_string()); - cxml::add_text_child(a, "IntrinsicDuration", raw_convert<string>(_intrinsic_duration)); + cxml::add_text_child(a, "IntrinsicDuration", fmt::to_string(_intrinsic_duration)); if (_entry_point) { - cxml::add_text_child(a, "EntryPoint", raw_convert<string>(*_entry_point)); + cxml::add_text_child(a, "EntryPoint", fmt::to_string(*_entry_point)); } if (_duration) { - cxml::add_text_child(a, "Duration", raw_convert<string>(*_duration)); + cxml::add_text_child(a, "Duration", fmt::to_string(*_duration)); } return a; } @@ -131,7 +132,7 @@ template <class T> string optional_to_string (optional<T> o) { - return o ? raw_convert<string>(*o) : "[none]"; + return o ? fmt::to_string(*o) : "[none]"; } |
