aboutsummaryrefslogtreecommitdiff
path: root/jobs/logoutjob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 12:16:36 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 12:20:33 +0900
commitb2c9daabc2e8b89e1108211d8c9badf1bac66640 (patch)
treef2a7ba70eacc8c69e2741ae1af47eeb5887bb396 /jobs/logoutjob.cpp
parentb469f1c9ab7603a297b1c0082d804312cabbd550 (diff)
downloadlibquotient-b2c9daabc2e8b89e1108211d8c9badf1bac66640.tar.gz
libquotient-b2c9daabc2e8b89e1108211d8c9badf1bac66640.zip
All jobs: Drop ConnectionData parameter from the constructor
Having to pass ConnectionData to each and every job class was nothing but boilerplate since the very beginning. Removing it required to prepend BaseJob::start() with ConnectionData-setting code, and to provide a way to alter the request configuration depending on the (late-coming) ConnectionData object. This is a new responsibility of BaseJob::start(); the previous BaseJob::start() contents have moved to BaseJob::sendRequest() (which is now invoked on retries, instead of start()).
Diffstat (limited to 'jobs/logoutjob.cpp')
-rw-r--r--jobs/logoutjob.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/logoutjob.cpp b/jobs/logoutjob.cpp
index 84e88760..5ea5cf4d 100644
--- a/jobs/logoutjob.cpp
+++ b/jobs/logoutjob.cpp
@@ -20,7 +20,7 @@
using namespace QMatrixClient;
-LogoutJob::LogoutJob(const ConnectionData* connection)
- : BaseJob(connection, HttpVerb::Post, "LogoutJob", "/_matrix/client/r0/logout")
+LogoutJob::LogoutJob()
+ : BaseJob(HttpVerb::Post, "LogoutJob", "/_matrix/client/r0/logout")
{
}