aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/encryptionevent.h3
-rw-r--r--lib/events/roommemberevent.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index 56913393..124ced33 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -6,13 +6,14 @@
#include "eventcontent.h"
#include "stateevent.h"
+#include "quotient_common.h"
namespace Quotient {
class QUOTIENT_API EncryptionEventContent : public EventContent::Base {
public:
enum EncryptionType : size_t { MegolmV1AesSha2 = 0, Undefined };
- explicit(false) EncryptionEventContent(EncryptionType et);
+ QUO_IMPLICIT EncryptionEventContent(EncryptionType et);
[[deprecated("This constructor will require explicit EncryptionType soon")]] //
explicit EncryptionEventContent()
: EncryptionEventContent(Undefined)
diff --git a/lib/events/roommemberevent.h b/lib/events/roommemberevent.h
index 3296ae22..ceb7826b 100644
--- a/lib/events/roommemberevent.h
+++ b/lib/events/roommemberevent.h
@@ -15,7 +15,7 @@ public:
using MembershipType
[[deprecated("Use Quotient::Membership instead")]] = Membership;
- explicit(false) MemberEventContent(Membership ms) : membership(ms) {}
+ QUO_IMPLICIT MemberEventContent(Membership ms) : membership(ms) {}
explicit MemberEventContent(const QJsonObject& json);
Membership membership;