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/audio_point.cc | |
| parent | 1e324c3cac09ac886293f755d0c1527ece2f5244 (diff) | |
Replace raw_convert<string> with fmt::to_string().
Diffstat (limited to 'src/lib/audio_point.cc')
| -rw-r--r-- | src/lib/audio_point.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/audio_point.cc b/src/lib/audio_point.cc index 036904520..efd342dd1 100644 --- a/src/lib/audio_point.cc +++ b/src/lib/audio_point.cc @@ -20,15 +20,14 @@ #include "audio_point.h" -#include <dcp/raw_convert.h> #include <dcp/warnings.h> LIBDCP_DISABLE_WARNINGS #include <libxml++/libxml++.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> using std::string; -using dcp::raw_convert; AudioPoint::AudioPoint () @@ -72,6 +71,6 @@ AudioPoint::operator= (AudioPoint const & other) void AudioPoint::as_xml (xmlpp::Element* parent) const { - cxml::add_text_child(parent, "Peak", raw_convert<string>(_data[PEAK])); - cxml::add_text_child(parent, "RMS", raw_convert<string>(_data[RMS])); + cxml::add_text_child(parent, "Peak", fmt::to_string(_data[PEAK])); + cxml::add_text_child(parent, "RMS", fmt::to_string(_data[RMS])); } |
