mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
simplify implementation of Beats::operator%= (Beats)
This commit is contained in:
parent
5d81535588
commit
f679da4e1e
1 changed files with 1 additions and 2 deletions
|
|
@ -211,8 +211,7 @@ public:
|
|||
Beats operator% (Beats const & b) { return Beats::ticks (_ticks % b.to_ticks());}
|
||||
|
||||
Beats operator%= (Beats const & b) {
|
||||
const Beats B (Beats::ticks (to_ticks() % b.to_ticks()));
|
||||
_ticks = B._ticks;
|
||||
_ticks = _ticks % b.to_ticks();
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue