summaryrefslogtreecommitdiff
path: root/src/interop_text_asset.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 15:32:01 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-23 17:34:47 +0100
commit77f52850eb56fa72bca3c072e9445649dc85493c (patch)
tree19c0059c2a30b71028dfaa64f073ec8893546e66 /src/interop_text_asset.cc
parenta66f89834d66c089d3328f36d319821d110b7ea1 (diff)
Use fmt for conversions from number to string (instead of raw_convert).
Diffstat (limited to 'src/interop_text_asset.cc')
-rw-r--r--src/interop_text_asset.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interop_text_asset.cc b/src/interop_text_asset.cc
index 01e0f89a..4650904f 100644
--- a/src/interop_text_asset.cc
+++ b/src/interop_text_asset.cc
@@ -45,7 +45,6 @@
#include "file.h"
#include "interop_load_font_node.h"
#include "interop_text_asset.h"
-#include "raw_convert.h"
#include "text_asset_internal.h"
#include "text_image.h"
#include "util.h"
@@ -54,6 +53,7 @@
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/core.h>
#include <boost/weak_ptr.hpp>
#include <cmath>
#include <cstdio>
@@ -117,7 +117,7 @@ InteropTextAsset::xml_as_string() const
cxml::add_text_child(root, "SubtitleID", _id);
cxml::add_text_child(root, "MovieTitle", _movie_title);
- cxml::add_text_child(root, "ReelNumber", raw_convert<string> (_reel_number));
+ cxml::add_text_child(root, "ReelNumber", fmt::to_string(_reel_number));
cxml::add_text_child(root, "Language", _language);
for (auto i: _load_font_nodes) {