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