aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/voip.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/voip.cpp')
-rw-r--r--lib/csapi/voip.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/csapi/voip.cpp b/lib/csapi/voip.cpp
index c95afe16..c98824b3 100644
--- a/lib/csapi/voip.cpp
+++ b/lib/csapi/voip.cpp
@@ -12,8 +12,7 @@ using namespace Quotient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-class GetTurnServerJob::Private
-{
+class GetTurnServerJob::Private {
public:
QJsonObject data;
};
@@ -24,10 +23,9 @@ QUrl GetTurnServerJob::makeRequestUrl(QUrl baseUrl)
basePath % "/voip/turnServer");
}
-static const auto GetTurnServerJobName = QStringLiteral("GetTurnServerJob");
-
GetTurnServerJob::GetTurnServerJob()
- : BaseJob(HttpVerb::Get, GetTurnServerJobName, basePath % "/voip/turnServer")
+ : BaseJob(HttpVerb::Get, QStringLiteral("GetTurnServerJob"),
+ basePath % "/voip/turnServer")
, d(new Private)
{}
@@ -38,5 +36,6 @@ const QJsonObject& GetTurnServerJob::data() const { return d->data; }
BaseJob::Status GetTurnServerJob::parseJson(const QJsonDocument& data)
{
fromJson(data, d->data);
+
return Success;
}