diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 19:09:57 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 20:24:39 +0900 |
commit | e49a842e877d17a1c6cbbb2349c2816639447721 (patch) | |
tree | f0985d0a43d448bb3b05ddc0f0054f5fe4a4b7be /lib/jobs/generated/directory.cpp | |
parent | a83eb9350def2b1537affe4390ea54d37ffbc777 (diff) | |
download | libquotient-e49a842e877d17a1c6cbbb2349c2816639447721.tar.gz libquotient-e49a842e877d17a1c6cbbb2349c2816639447721.zip |
Connection, jobs/generated: Use QStringList instead of QVector<QString>
QStringList's API is richer, after all.
Diffstat (limited to 'lib/jobs/generated/directory.cpp')
-rw-r--r-- | lib/jobs/generated/directory.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/jobs/generated/directory.cpp b/lib/jobs/generated/directory.cpp index 6324a1f5..3066ebe2 100644 --- a/lib/jobs/generated/directory.cpp +++ b/lib/jobs/generated/directory.cpp @@ -26,7 +26,7 @@ class GetRoomIdByAliasJob::Private { public: QString roomId; - QVector<QString> servers; + QStringList servers; }; QUrl GetRoomIdByAliasJob::makeRequestUrl(QUrl baseUrl, const QString& roomAlias) @@ -49,7 +49,7 @@ const QString& GetRoomIdByAliasJob::roomId() const return d->roomId; } -const QVector<QString>& GetRoomIdByAliasJob::servers() const +const QStringList& GetRoomIdByAliasJob::servers() const { return d->servers; } @@ -58,7 +58,7 @@ BaseJob::Status GetRoomIdByAliasJob::parseJson(const QJsonDocument& data) { auto json = data.object(); d->roomId = fromJson<QString>(json.value("room_id")); - d->servers = fromJson<QVector<QString>>(json.value("servers")); + d->servers = fromJson<QStringList>(json.value("servers")); return Success; } |