aboutsummaryrefslogtreecommitdiff
path: root/lib/application-service/definitions/location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/application-service/definitions/location.cpp')
-rw-r--r--lib/application-service/definitions/location.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/application-service/definitions/location.cpp b/lib/application-service/definitions/location.cpp
index f70acd55..973bcd22 100644
--- a/lib/application-service/definitions/location.cpp
+++ b/lib/application-service/definitions/location.cpp
@@ -6,7 +6,7 @@
using namespace QMatrixClient;
-QJsonObject QMatrixClient::toJson(const Location& pod)
+QJsonObject QMatrixClient::toJson(const ThirdPartyLocation& pod)
{
QJsonObject _json;
addParam<IfNotEmpty>(_json, QStringLiteral("alias"), pod.alias);
@@ -15,10 +15,10 @@ QJsonObject QMatrixClient::toJson(const Location& pod)
return _json;
}
-Location FromJson<Location>::operator()(const QJsonValue& jv)
+ThirdPartyLocation FromJson<ThirdPartyLocation>::operator()(const QJsonValue& jv)
{
const auto& _json = jv.toObject();
- Location result;
+ ThirdPartyLocation result;
result.alias =
fromJson<QString>(_json.value("alias"_ls));
result.protocol =