From 4943cbea505aacdd33bf93c3365588ba73785d4d Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 13 Oct 2016 09:07:15 +0900 Subject: BaseJob: Use saved parameters instead of overriding apiPath(), query() and data() in each job class --- jobs/logoutjob.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'jobs/logoutjob.cpp') diff --git a/jobs/logoutjob.cpp b/jobs/logoutjob.cpp index 88767e4c..25dee174 100644 --- a/jobs/logoutjob.cpp +++ b/jobs/logoutjob.cpp @@ -21,15 +21,10 @@ using namespace QMatrixClient; LogoutJob::LogoutJob(ConnectionData* connection) - : BaseJob(connection, JobHttpType::PostJob, "LogoutJob") + : BaseJob(connection, JobHttpType::PostJob, "LogoutJob", "/_matrix/client/r0/logout") { } LogoutJob::~LogoutJob() { } - -QString LogoutJob::apiPath() const -{ - return "/_matrix/client/r0/logout"; -} -- cgit v1.2.3