From f679da4e1e320d0359e70acd10453f4c3ef5d771 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 21 Jun 2022 14:46:08 -0600 Subject: [PATCH] simplify implementation of Beats::operator%= (Beats) --- libs/temporal/temporal/beats.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/temporal/temporal/beats.h b/libs/temporal/temporal/beats.h index c1bf42e0cb..78caf1324a 100644 --- a/libs/temporal/temporal/beats.h +++ b/libs/temporal/temporal/beats.h @@ -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; }