13
0

use a more explantory object name

This commit is contained in:
Paul Davis 2023-08-02 15:20:20 -06:00
parent fa225846af
commit 961fdc9de6
3 changed files with 5 additions and 5 deletions

View File

@ -55,7 +55,7 @@ class ThawList;
template<typename T> class MidiRingBuffer;
class LIBARDOUR_API MidiRegion : public Region, public Temporal::TimeThing
class LIBARDOUR_API MidiRegion : public Region, public Temporal::TimeDomainSwapper
{
public:
~MidiRegion();

View File

@ -1273,7 +1273,7 @@ class LIBTEMPORAL_API DomainSwapInformation {
void add (timecnt_t& t) { counts.push_back (&t); }
void add (timepos_t& p) { positions.push_back (&p); }
void add (TimeThing& tt) { time_things.push_back (&tt); }
void add (TimeDomainSwapper& tt) { time_things.push_back (&tt); }
void clear ();
private:
@ -1281,7 +1281,7 @@ class LIBTEMPORAL_API DomainSwapInformation {
std::vector<timecnt_t*> counts;
std::vector<timepos_t*> positions;
std::vector<TimeThing*> time_things;
std::vector<TimeDomainSwapper*> time_things;
TimeDomain previous;
void undo ();

View File

@ -124,8 +124,8 @@ enum RoundMode {
extern void setup_enum_writer ();
struct LIBTEMPORAL_API TimeThing {
virtual ~TimeThing() {}
struct LIBTEMPORAL_API TimeDomainSwapper {
virtual ~TimeDomainSwapper() {}
virtual void swap_domain (Temporal::TimeDomain from, Temporal::TimeDomain to) = 0;
};