mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
temporal: remove some arithmetic operators and rewrite others to use muldiv()
This commit is contained in:
parent
12e5042ece
commit
48f4f9bf9c
2 changed files with 6 additions and 78 deletions
|
|
@ -193,10 +193,7 @@ class LIBTEMPORAL_API timepos_t : public int62_t {
|
|||
* along the x (time) axis.
|
||||
*/
|
||||
|
||||
timepos_t operator/ (ratio_t const & n) const;
|
||||
timepos_t operator* (ratio_t const & n) const;
|
||||
timepos_t & operator/= (ratio_t const & n);
|
||||
timepos_t & operator*= (ratio_t const & n);
|
||||
timepos_t scale (ratio_t const & n) const;
|
||||
|
||||
bool operator< (samplepos_t s) { return samples() < s; }
|
||||
bool operator< (Temporal::Beats const & b) { return beats() < b; }
|
||||
|
|
@ -357,8 +354,7 @@ class LIBTEMPORAL_API timecnt_t {
|
|||
timecnt_t operator++ () { _distance += 1; return *this; }
|
||||
timecnt_t operator-- () { _distance -= 1; return *this; }
|
||||
|
||||
timecnt_t operator*(ratio_t const &) const;
|
||||
timecnt_t operator/(ratio_t const &) const;
|
||||
timecnt_t scale (ratio_t const &) const;
|
||||
|
||||
ratio_t operator/ (timecnt_t const &) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue