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/asset.cc | |
| parent | 5d002b3c904dd8fbad1bec8af119f3cd06b48d89 (diff) | |
Replace simple uses of raw_convert<string> with fmt.fmt
Diffstat (limited to 'src/asset.cc')
| -rw-r--r-- | src/asset.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/asset.cc b/src/asset.cc index 6e200b0d..ae8e95cc 100644 --- a/src/asset.cc +++ b/src/asset.cc @@ -45,6 +45,7 @@ #include "raw_convert.h" #include "util.h" #include "warnings.h" +#include <fmt/format.h> LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS @@ -132,7 +133,7 @@ Asset::write_file_to_assetmap (xmlpp::Node* node, path root, path file, string i chunk->add_child("Path")->add_child_text(path.get().generic_string()); chunk->add_child("VolumeIndex")->add_child_text("1"); chunk->add_child("Offset")->add_child_text("0"); - chunk->add_child("Length")->add_child_text(raw_convert<string>(file_size(file))); + chunk->add_child("Length")->add_child_text(fmt::to_string(file_size(file))); } |
