diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-01 14:08:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-01 20:51:21 +0100 |
| commit | c90d68049f56110436927aa847da882ee4b4f67c (patch) | |
| tree | 1a1b8ee748d40a76c6e99fdf12e3da3306df7c4e /src/types.cc | |
| parent | 68533f20f9f2e0ca9efc9360f20d047a79e4fd8a (diff) | |
Replace raw_convert<string> with direct calls to fmt.v1.10.3
Diffstat (limited to 'src/types.cc')
| -rw-r--r-- | src/types.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/types.cc b/src/types.cc index 99b2f6c8..a17966b4 100644 --- a/src/types.cc +++ b/src/types.cc @@ -46,6 +46,7 @@ LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> #include <boost/algorithm/string.hpp> #include <string> #include <vector> @@ -355,7 +356,7 @@ Luminance::as_xml (xmlpp::Element* parent, string ns) const { auto lum = cxml::add_child(parent, "Luminance", ns); lum->set_attribute("units", unit_to_string(_unit)); - lum->add_child_text(raw_convert<string>(_value, 3)); + lum->add_child_text(fmt::format("{:.3}", _value)); } |
