aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-08 15:36:28 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-12-08 20:12:24 +0900
commit9628594881346c8e06594e65d3befafc310e12d5 (patch)
treeaee1453eded9a682d197eeeca16b016e3199e953 /lib
parent3392e66fd015e191b01f6e3fc6839edc3948e31f (diff)
downloadlibquotient-9628594881346c8e06594e65d3befafc310e12d5.tar.gz
libquotient-9628594881346c8e06594e65d3befafc310e12d5.zip
EventContent: minor cleanup
Diffstat (limited to 'lib')
-rw-r--r--lib/events/eventcontent.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/eventcontent.h b/lib/events/eventcontent.h
index 91d7a8c8..bedf0078 100644
--- a/lib/events/eventcontent.h
+++ b/lib/events/eventcontent.h
@@ -43,9 +43,10 @@ namespace QMatrixClient
class Base
{
public:
- explicit Base (const QJsonObject& o = {}) : originalJson(o) { }
+ explicit Base (QJsonObject o = {}) : originalJson(std::move(o)) { }
virtual ~Base() = default;
+ // FIXME: make toJson() from converters.* work on base classes
QJsonObject toJson() const;
public: