operator% is a const operation
This commit is contained in:
parent
36aa661a1d
commit
28d11df6f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user