From 0cc26526b243fd10d84ccda87852defd29631b39 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 1 May 2018 14:39:03 +0900 Subject: RedactionEvent: make the constructor explicit --- lib/events/redactionevent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/events/redactionevent.h b/lib/events/redactionevent.h index fa6902ab..829b9085 100644 --- a/lib/events/redactionevent.h +++ b/lib/events/redactionevent.h @@ -27,7 +27,7 @@ namespace QMatrixClient public: static constexpr const char* const TypeId = "m.room.redaction"; - RedactionEvent(const QJsonObject& obj) + explicit RedactionEvent(const QJsonObject& obj) : RoomEvent(Type::Redaction, obj) , _redactedEvent(obj.value("redacts").toString()) , _reason(contentJson().value("reason").toString()) -- cgit v1.2.3