summaryrefslogtreecommitdiff
path: root/src/smpte_subtitle_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-03-24 11:56:51 +0100
committerCarl Hetherington <cth@carlh.net>2022-03-24 11:56:51 +0100
commitfe3c593910ed2364add3bb06c0b5ea51554c338d (patch)
tree1bd64ab8d8cf72865a3c1c81c0c7790ea480a402 /src/smpte_subtitle_asset.cc
parent5d002b3c904dd8fbad1bec8af119f3cd06b48d89 (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.cc5
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));
}