From be20f760ab309f5b5d45ac3ce92e1bd627767a72 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 1 Dec 2020 20:18:20 +0100 Subject: [PATCH] event/Loop: disallow copying --- src/event/Loop.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/event/Loop.hxx b/src/event/Loop.hxx index dddabd9aa..d8d9f637a 100644 --- a/src/event/Loop.hxx +++ b/src/event/Loop.hxx @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_EVENT_LOOP_HXX -#define MPD_EVENT_LOOP_HXX +#ifndef EVENT_LOOP_HXX +#define EVENT_LOOP_HXX #include "Chrono.hxx" #include "Backend.hxx" @@ -170,6 +170,9 @@ public: ~EventLoop() noexcept; + EventLoop(const EventLoop &other) = delete; + EventLoop &operator=(const EventLoop &other) = delete; + /** * A caching wrapper for Event::Clock::now(). */