summaryrefslogtreecommitdiff
path: root/src/lib/analytics.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/analytics.cc
parent1e324c3cac09ac886293f755d0c1527ece2f5244 (diff)
Replace raw_convert<string> with fmt::to_string().
Diffstat (limited to 'src/lib/analytics.cc')
-rw-r--r--src/lib/analytics.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/analytics.cc b/src/lib/analytics.cc
index 9dcfdcd31..b3c44202a 100644
--- a/src/lib/analytics.cc
+++ b/src/lib/analytics.cc
@@ -24,12 +24,12 @@
#include "exceptions.h"
#include "variant.h"
#include <dcp/filesystem.h>
-#include <dcp/raw_convert.h>
#include <dcp/warnings.h>
#include <libcxml/cxml.h>
LIBDCP_DISABLE_WARNINGS
#include <libxml++/libxml++.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
@@ -37,7 +37,6 @@ LIBDCP_ENABLE_WARNINGS
using std::string;
-using dcp::raw_convert;
using boost::algorithm::trim;
@@ -101,8 +100,8 @@ Analytics::write () const
xmlpp::Document doc;
auto root = doc.create_root_node ("Analytics");
- cxml::add_text_child(root, "Version", raw_convert<string>(_current_version));
- cxml::add_text_child(root, "SuccessfulDCPEncodes", raw_convert<string>(_successful_dcp_encodes));
+ cxml::add_text_child(root, "Version", fmt::to_string(_current_version));
+ cxml::add_text_child(root, "SuccessfulDCPEncodes", fmt::to_string(_successful_dcp_encodes));
try {
doc.write_to_file_formatted(write_path("analytics.xml").string());