diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-30 15:43:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-05 12:58:13 +0100 |
| commit | b03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch) | |
| tree | d6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/lib/util.cc | |
| parent | e46ff5f1cf168fb73ea930f3e8469165e5f6644e (diff) | |
Bump libdcp for raw_convert changes.
raw_convert<string> is gone, so here we use fmt::{to_string,format} instead.
Other raw_converts now use fast_float.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index fde4ce15e..14839d80d 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -78,6 +78,7 @@ LIBDCP_ENABLE_WARNINGS #include <unicode/unistr.h> #include <unicode/translit.h> #include <unicode/brkiter.h> +#include <fmt/format.h> #include <boost/algorithm/string.hpp> #include <boost/range/algorithm/replace_if.hpp> #include <boost/thread.hpp> @@ -612,7 +613,7 @@ string simple_digest (vector<boost::filesystem::path> paths) { DCP_ASSERT(!paths.empty()); - return digest_head_tail(paths, 1000000) + raw_convert<string>(dcp::filesystem::file_size(paths.front())); + return digest_head_tail(paths, 1000000) + fmt::to_string(dcp::filesystem::file_size(paths.front())); } @@ -744,8 +745,8 @@ asset_filename (shared_ptr<dcp::Asset> asset, string type, int reel_index, int r { dcp::NameFormat::Map values; values['t'] = type; - values['r'] = raw_convert<string>(reel_index + 1); - values['n'] = raw_convert<string>(reel_count); + values['r'] = fmt::to_string(reel_index + 1); + values['n'] = fmt::to_string(reel_count); if (summary) { values['c'] = summary.get(); } |
