EventHandler: Support operator!=

This commit is contained in:
Arne Welzel 2025-01-28 14:17:53 +01:00
parent 5ef6902331
commit e395332e7b

View file

@ -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; }