From e395332e7bdc19a23028e945ffbafc46e690f122 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Tue, 28 Jan 2025 14:17:53 +0100 Subject: [PATCH] EventHandler: Support operator!= --- src/EventHandler.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EventHandler.h b/src/EventHandler.h index ce241f93c7..f6da3378fa 100644 --- a/src/EventHandler.h +++ b/src/EventHandler.h @@ -101,6 +101,8 @@ public: bool operator==(const EventHandlerPtr& h) const { return handler == h.handler; } + bool operator!=(const EventHandlerPtr& h) const { return ! (*this == h); } + EventHandler* Ptr() { return handler; } explicit operator bool() const { return handler && *handler; }