aboutsummaryrefslogtreecommitdiff
path: root/lib/events
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events')
-rw-r--r--lib/events/accountdataevents.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/events/accountdataevents.h b/lib/events/accountdataevents.h
index 7715d3b8..e5101d20 100644
--- a/lib/events/accountdataevents.h
+++ b/lib/events/accountdataevents.h
@@ -55,11 +55,11 @@ using TagsMap = QHash<QString, TagRecord>;
public: \
using content_type = _ContentType; \
DEFINE_EVENT_TYPEID(_TypeId, _Name) \
- explicit _Name(QJsonObject obj) : Event(typeId(), std::move(obj)) {} \
- explicit _Name(_ContentType content) \
+ explicit _Name(const QJsonObject& obj) : Event(typeId(), obj) {} \
+ explicit _Name(const content_type& content) \
: Event(typeId(), matrixTypeId(), \
- QJsonObject { { QStringLiteral(#_ContentKey), \
- toJson(std::move(content)) } }) \
+ QJsonObject { \
+ { QStringLiteral(#_ContentKey), toJson(content) } }) \
{} \
auto _ContentKey() const \
{ \