summaryrefslogtreecommitdiff
path: root/src/asset_map.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/asset_map.cc
parenta66f89834d66c089d3328f36d319821d110b7ea1 (diff)
Use fmt for conversions from number to string (instead of raw_convert).
Diffstat (limited to 'src/asset_map.cc')
-rw-r--r--src/asset_map.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/asset_map.cc b/src/asset_map.cc
index 0ee4b486..b8d455fe 100644
--- a/src/asset_map.cc
+++ b/src/asset_map.cc
@@ -36,11 +36,12 @@
#include "dcp_assert.h"
#include "exceptions.h"
#include "filesystem.h"
-#include "raw_convert.h"
+#include "util.h"
#include "warnings.h"
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/core.h>
#include <boost/algorithm/string.hpp>
@@ -214,6 +215,6 @@ AssetMap::Asset::write_xml(xmlpp::Element* asset_list, boost::filesystem::path d
cxml::add_text_child(chunk, "Path", relative_path->generic_string());
cxml::add_text_child(chunk, "VolumeIndex", "1");
cxml::add_text_child(chunk, "Offset", "0");
- cxml::add_text_child(chunk, "Length", raw_convert<string>(filesystem::file_size(_path)));
+ cxml::add_text_child(chunk, "Length", fmt::to_string(filesystem::file_size(_path)));
}