From ddcb6fe3a6cf05b09dff74471a3581134b28e17d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 21 Jul 2025 10:29:23 -0600 Subject: [PATCH] add operator== for TriggerReference --- libs/ardour/ardour/triggerbox.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/ardour/ardour/triggerbox.h b/libs/ardour/ardour/triggerbox.h index aaffc821ab..6f280af1d0 100644 --- a/libs/ardour/ardour/triggerbox.h +++ b/libs/ardour/ardour/triggerbox.h @@ -1112,6 +1112,10 @@ class TriggerReference uint32_t slot() const { return _slot; } std::shared_ptr box() const { return weak_box.lock(); } + bool operator== (TriggerReference const & other) { + return _slot == other._slot && box() == other.box(); + } + private: std::weak_ptr weak_box; uint32_t _slot;