summaryrefslogtreecommitdiff
path: root/src/pkl.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/pkl.cc
parenta66f89834d66c089d3328f36d319821d110b7ea1 (diff)
Use fmt for conversions from number to string (instead of raw_convert).
Diffstat (limited to 'src/pkl.cc')
-rw-r--r--src/pkl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkl.cc b/src/pkl.cc
index c77d8e64..94befed0 100644
--- a/src/pkl.cc
+++ b/src/pkl.cc
@@ -41,13 +41,13 @@
#include "exceptions.h"
#include "filesystem.h"
#include "pkl.h"
-#include "raw_convert.h"
#include "util.h"
#include "warnings.h"
#include "verify.h"
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/core.h>
#include <iostream>
@@ -137,7 +137,7 @@ PKL::write_xml (boost::filesystem::path file, shared_ptr<const CertificateChain>
cxml::add_text_child(asset, "AnnotationText", *i->annotation_text());
}
cxml::add_text_child(asset, "Hash", i->hash());
- cxml::add_text_child(asset, "Size", raw_convert<string>(i->size()));
+ cxml::add_text_child(asset, "Size", fmt::to_string(i->size()));
cxml::add_text_child(asset, "Type", i->type());
if (auto filename = i->original_filename()) {
cxml::add_text_child(asset, "OriginalFileName", *filename);