From 442dd5e955c6e9e25de9a006f6166308222f7392 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 18 Oct 2020 19:23:20 +0200 Subject: [PATCH] event/IdleEvent: forbid copying --- src/event/IdleEvent.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/event/IdleEvent.hxx b/src/event/IdleEvent.hxx index c43d6117a..00f55988c 100644 --- a/src/event/IdleEvent.hxx +++ b/src/event/IdleEvent.hxx @@ -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