13
0

operator% is a const operation

This commit is contained in:
Robin Gareus 2022-09-27 05:59:56 +02:00
parent 36aa661a1d
commit 28d11df6f6
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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();