diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 11:44:00 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 16:15:01 +0900 |
commit | f9cd6410623b7ddebf97e248584d1a8e838b4da8 (patch) | |
tree | ebd9e39f85b2d7586d4b0e713cf65003935a3945 /events/accountdataevents.h | |
parent | fcf335e202a49c62be29566daf233866cd2f3584 (diff) | |
download | libquotient-f9cd6410623b7ddebf97e248584d1a8e838b4da8.tar.gz libquotient-f9cd6410623b7ddebf97e248584d1a8e838b4da8.zip |
Room: addTag() and removeTag()
Slightly changed TagRecord constructors to match.
Diffstat (limited to 'events/accountdataevents.h')
-rw-r--r-- | events/accountdataevents.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/events/accountdataevents.h b/events/accountdataevents.h index 78cf9c46..f3ba27bb 100644 --- a/events/accountdataevents.h +++ b/events/accountdataevents.h @@ -30,8 +30,8 @@ namespace QMatrixClient struct TagRecord { - TagRecord (QString order) : order(std::move(order)) { } - explicit TagRecord(const QJsonValue& jv = {}) + TagRecord (QString order = {}) : order(std::move(order)) { } + explicit TagRecord(const QJsonValue& jv) : order(jv.toObject().value("order").toString()) { } |