mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 04:39:33 +01:00
add operator== for TriggerReference
This commit is contained in:
parent
922b961672
commit
ddcb6fe3a6
1 changed files with 4 additions and 0 deletions
|
|
@ -1112,6 +1112,10 @@ class TriggerReference
|
|||
uint32_t slot() const { return _slot; }
|
||||
std::shared_ptr<ARDOUR::TriggerBox> box() const { return weak_box.lock(); }
|
||||
|
||||
bool operator== (TriggerReference const & other) {
|
||||
return _slot == other._slot && box() == other.box();
|
||||
}
|
||||
|
||||
private:
|
||||
std::weak_ptr<ARDOUR::TriggerBox> weak_box;
|
||||
uint32_t _slot;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue