summaryrefslogtreecommitdiff
path: root/src/wx/timecode.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-30 15:43:14 +0100
committerCarl Hetherington <cth@carlh.net>2025-01-05 12:58:13 +0100
commitb03f2277a205ff7e7cdaa12c6e52322ea474a7af (patch)
treed6067668105b2f0c6d0651bd1b8bd4186e0b8893 /src/wx/timecode.h
parente46ff5f1cf168fb73ea930f3e8469165e5f6644e (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/wx/timecode.h')
-rw-r--r--src/wx/timecode.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/wx/timecode.h b/src/wx/timecode.h
index 22899ddc9..1116e9d87 100644
--- a/src/wx/timecode.h
+++ b/src/wx/timecode.h
@@ -30,6 +30,7 @@
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
LIBDCP_ENABLE_WARNINGS
+#include <fmt/format.h>
#include <boost/signals2.hpp>
@@ -79,10 +80,10 @@ public:
{
auto const hmsf = t.split (fps);
- checked_set (_hours, dcp::raw_convert<std::string>(hmsf.h));
- checked_set (_minutes, dcp::raw_convert<std::string>(hmsf.m));
- checked_set (_seconds, dcp::raw_convert<std::string>(hmsf.s));
- checked_set (_frames, dcp::raw_convert<std::string>(hmsf.f));
+ checked_set(_hours, fmt::to_string(hmsf.h));
+ checked_set(_minutes, fmt::to_string(hmsf.m));
+ checked_set(_seconds, fmt::to_string(hmsf.s));
+ checked_set(_frames, fmt::to_string(hmsf.f));
checked_set (_fixed, t.timecode (fps));
}
@@ -91,10 +92,10 @@ public:
{
auto hmsf = t.split (fps);
- _hours->SetHint (std_to_wx(dcp::raw_convert<std::string>(hmsf.h)));
- _minutes->SetHint (std_to_wx(dcp::raw_convert<std::string>(hmsf.m)));
- _seconds->SetHint (std_to_wx(dcp::raw_convert<std::string>(hmsf.s)));
- _frames->SetHint (std_to_wx(dcp::raw_convert<std::string>(hmsf.f)));
+ _hours->SetHint(std_to_wx(fmt::to_string(hmsf.h)));
+ _minutes->SetHint(std_to_wx(fmt::to_string(hmsf.m)));
+ _seconds->SetHint(std_to_wx(fmt::to_string(hmsf.s)));
+ _frames->SetHint(std_to_wx(fmt::to_string(hmsf.f)));
}
void set_maximum(dcpomatic::HMSF maximum)