13
0

Replace boost::integer::gcd with std::gcd

This commit is contained in:
Alejandro Domínguez 2024-08-28 19:48:14 +02:00 committed by Robin Gareus
parent 5223b176f3
commit 1124e191f0
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -802,7 +802,7 @@ StepView::set_timing_text ()
if (_step.offset() == Temporal::Beats()) { if (_step.offset() == Temporal::Beats()) {
text->set (X_("0")); text->set (X_("0"));
} else { } else {
const int64_t gcd = boost::integer::gcd (_step.offset().to_ticks(), int64_t (1920)); const int64_t gcd = std::gcd (_step.offset().to_ticks(), int64_t (1920));
const int64_t n = _step.offset().to_ticks() / gcd; const int64_t n = _step.offset().to_ticks() / gcd;
const int64_t d = 1920 / gcd; const int64_t d = 1920 / gcd;
text->set (string_compose ("%1/%2", n, d)); text->set (string_compose ("%1/%2", n, d));