diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-23 21:50:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:26:40 +0100 |
| commit | cec6ff92aef45c687085ecfc1059004407c18c57 (patch) | |
| tree | 8aace150067b6017498e037841a22465525b4a62 /src/lib/string_text_file_content.cc | |
| parent | 1e324c3cac09ac886293f755d0c1527ece2f5244 (diff) | |
Replace raw_convert<string> with fmt::to_string().
Diffstat (limited to 'src/lib/string_text_file_content.cc')
| -rw-r--r-- | src/lib/string_text_file_content.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/string_text_file_content.cc b/src/lib/string_text_file_content.cc index 4f7fbb241..6b5492af9 100644 --- a/src/lib/string_text_file_content.cc +++ b/src/lib/string_text_file_content.cc @@ -26,9 +26,9 @@ #include "string_text_file_content.h" #include "text_content.h" #include "util.h" -#include <dcp/raw_convert.h> #include <fontconfig/fontconfig.h> #include <libxml++/libxml++.h> +#include <fmt/format.h> #include <iostream> @@ -41,7 +41,6 @@ using std::make_shared; using std::shared_ptr; using std::string; using boost::optional; -using dcp::raw_convert; using namespace dcpomatic; @@ -131,7 +130,7 @@ StringTextFileContent::as_xml(xmlpp::Element* element, bool with_paths, PathBeha only_text()->as_xml(element); } - cxml::add_text_child(element, "Length", raw_convert<string>(_length.get())); + cxml::add_text_child(element, "Length", fmt::to_string(_length.get())); } |
