diff options
author | David Robillard <d@drobilla.net> | 2020-12-19 12:11:05 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-19 12:11:05 +0100 |
commit | cce18a14f18b1aa63949de77f4f370ba82708cf3 (patch) | |
tree | 74130c8a14d9a6ce7162e05791d34236f3d72a02 | |
parent | fd6f5cd21c0a1c3a73d77d5271fe835c1f7f0fcb (diff) | |
download | raul-cce18a14f18b1aa63949de77f4f370ba82708cf3.tar.gz raul-cce18a14f18b1aa63949de77f4f370ba82708cf3.tar.bz2 raul-cce18a14f18b1aa63949de77f4f370ba82708cf3.zip |
Avoid repeating return types
-rw-r--r-- | include/raul/TimeSlice.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/raul/TimeSlice.hpp b/include/raul/TimeSlice.hpp index 5d2da1e..594e1a9 100644 --- a/include/raul/TimeSlice.hpp +++ b/include/raul/TimeSlice.hpp @@ -95,11 +95,11 @@ public: } inline TimeStamp beats_to_seconds(TimeStamp beats) const { - return TimeStamp(real_unit(), beats.to_double() * 1/_beat_rate); + return {real_unit(), beats.to_double() * 1/_beat_rate}; } inline TimeStamp beats_to_ticks(TimeStamp beats) const { - return TimeStamp(ticks_unit(), beats.to_double() * _beat_rate * _tick_rate); + return {ticks_unit(), beats.to_double() * _beat_rate * _tick_rate}; } inline TimeStamp ticks_to_seconds(TimeStamp ticks) const { |