event/IdleEvent: forbid copying

This commit is contained in:
Max Kellermann 2020-10-18 19:23:20 +02:00
parent 172c2ae1aa
commit 442dd5e955

View File

@ -48,6 +48,9 @@ public:
IdleEvent(EventLoop &_loop, Callback _callback) noexcept
:loop(_loop), callback(_callback) {}
IdleEvent(const IdleEvent &) = delete;
IdleEvent &operator=(const IdleEvent &) = delete;
~IdleEvent() noexcept {
#ifndef NDEBUG
/* this check is redundant, it is only here to avoid