From 28d11df6f66b84c484bd5432b99008287b5813ca Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 27 Sep 2022 05:59:56 +0200 Subject: [PATCH] operator% is a const operation --- libs/temporal/temporal/beats.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/temporal/temporal/beats.h b/libs/temporal/temporal/beats.h index 528db61890..b9395388d0 100644 --- a/libs/temporal/temporal/beats.h +++ b/libs/temporal/temporal/beats.h @@ -208,7 +208,7 @@ public: Beats operator*(ratio_t const & factor) const {return ticks (PBD::muldiv (_ticks, factor.numerator(), factor.denominator())); } Beats operator/(ratio_t const & factor) const {return ticks (PBD::muldiv (_ticks, factor.denominator(), factor.numerator())); } - Beats operator% (Beats const & b) { return Beats::ticks (_ticks % b.to_ticks());} + Beats operator% (Beats const & b) const { return Beats::ticks (_ticks % b.to_ticks());} Beats operator%= (Beats const & b) { _ticks = _ticks % b.to_ticks();