From 85b09ebc7cbcf58f1802438f600a3eaeb2286887 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 1 Aug 2018 17:07:21 +0900 Subject: Event: use Q_DISABLE_COPY --- lib/events/event.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/events/event.h') diff --git a/lib/events/event.h b/lib/events/event.h index 8fa8c901..f3cebfb3 100644 --- a/lib/events/event.h +++ b/lib/events/event.h @@ -228,9 +228,8 @@ namespace QMatrixClient explicit Event(Type type, const QJsonObject& json); explicit Event(Type type, event_mtype_t matrixType, const QJsonObject& contentJson = {}); - Event(const Event&) = delete; + Q_DISABLE_COPY(Event) Event(Event&&) = default; - Event& operator=(const Event&) = delete; Event& operator=(Event&&) = delete; virtual ~Event(); -- cgit v1.2.3