diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-03-24 11:56:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-24 11:56:51 +0100 |
| commit | fe3c593910ed2364add3bb06c0b5ea51554c338d (patch) | |
| tree | 1bd64ab8d8cf72865a3c1c81c0c7790ea480a402 /src/smpte_subtitle_asset.cc | |
| parent | 5d002b3c904dd8fbad1bec8af119f3cd06b48d89 (diff) | |
Replace simple uses of raw_convert<string> with fmt.fmt
Diffstat (limited to 'src/smpte_subtitle_asset.cc')
| -rw-r--r-- | src/smpte_subtitle_asset.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smpte_subtitle_asset.cc b/src/smpte_subtitle_asset.cc index 0693323c..4383a79a 100644 --- a/src/smpte_subtitle_asset.cc +++ b/src/smpte_subtitle_asset.cc @@ -48,6 +48,7 @@ #include "util.h" #include "warnings.h" #include "xml.h" +#include <fmt/format.h> LIBDCP_DISABLE_WARNINGS #include <asdcp/AS_DCP.h> #include <asdcp/KM_util.h> @@ -353,13 +354,13 @@ SMPTESubtitleAsset::xml_as_string () const } root->add_child("IssueDate")->add_child_text(_issue_date.as_string(true)); if (_reel_number) { - root->add_child("ReelNumber")->add_child_text(raw_convert<string>(_reel_number.get())); + root->add_child("ReelNumber")->add_child_text(fmt::to_string(_reel_number.get())); } if (_language) { root->add_child("Language")->add_child_text(_language.get()); } root->add_child("EditRate")->add_child_text(_edit_rate.as_string()); - root->add_child("TimeCodeRate")->add_child_text(raw_convert<string>(_time_code_rate)); + root->add_child("TimeCodeRate")->add_child_text(fmt::to_string(_time_code_rate)); if (_start_time) { root->add_child("StartTime")->add_child_text(_start_time.get().as_string(Standard::SMPTE)); } |
