summaryrefslogtreecommitdiff
path: root/src/lib/rough_duration.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-23 21:50:53 +0100
committerCarl Hetherington <cth@carlh.net>2024-12-26 00:26:40 +0100
commitcec6ff92aef45c687085ecfc1059004407c18c57 (patch)
tree8aace150067b6017498e037841a22465525b4a62 /src/lib/rough_duration.cc
parent1e324c3cac09ac886293f755d0c1527ece2f5244 (diff)
Replace raw_convert<string> with fmt::to_string().
Diffstat (limited to 'src/lib/rough_duration.cc')
-rw-r--r--src/lib/rough_duration.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/rough_duration.cc b/src/lib/rough_duration.cc
index e6c03126c..f22e54ac8 100644
--- a/src/lib/rough_duration.cc
+++ b/src/lib/rough_duration.cc
@@ -26,6 +26,7 @@
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
using std::string;
@@ -52,7 +53,7 @@ RoughDuration::RoughDuration (cxml::ConstNodePtr node)
void
RoughDuration::as_xml (xmlpp::Element* node) const
{
- node->add_child_text(dcp::raw_convert<string>(duration));
+ node->add_child_text(fmt::to_string(duration));
switch (unit) {
case Unit::DAYS: