diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-25 20:37:36 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-27 20:03:43 +0900 |
commit | 46050cd59a7af8cc7d616fab1a80db95dc8b5b35 (patch) | |
tree | d717d85e8b5d340050c317418e26addf1766a826 /jobs/postmessagejob.cpp | |
parent | 40195a814673fb8557a8b9c67a0f4d61191eb34e (diff) | |
download | libquotient-46050cd59a7af8cc7d616fab1a80db95dc8b5b35.tar.gz libquotient-46050cd59a7af8cc7d616fab1a80db95dc8b5b35.zip |
Use 'override' keyword throughout job classes; constify apiPath(), query(), data()
Thanks to CLang model.
Diffstat (limited to 'jobs/postmessagejob.cpp')
-rw-r--r-- | jobs/postmessagejob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/postmessagejob.cpp b/jobs/postmessagejob.cpp index 65042ed0..cf9b94fd 100644 --- a/jobs/postmessagejob.cpp +++ b/jobs/postmessagejob.cpp @@ -48,12 +48,12 @@ PostMessageJob::~PostMessageJob() delete d; } -QString PostMessageJob::apiPath() +QString PostMessageJob::apiPath() const { return QString("_matrix/client/r0/rooms/%1/send/m.room.message").arg(d->room->id()); } -QJsonObject PostMessageJob::data() +QJsonObject PostMessageJob::data() const { QJsonObject json; json.insert("msgtype", d->type); |