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/versions.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/versions.cpp')
-rw-r--r-- | lib/jobs/generated/versions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/jobs/generated/versions.cpp b/lib/jobs/generated/versions.cpp index 3b03172c..7b55b94f 100644 --- a/lib/jobs/generated/versions.cpp +++ b/lib/jobs/generated/versions.cpp @@ -15,7 +15,7 @@ static const auto basePath = QStringLiteral("/_matrix/client"); class GetVersionsJob::Private { public: - QVector<QString> versions; + QStringList versions; }; QUrl GetVersionsJob::makeRequestUrl(QUrl baseUrl) @@ -33,7 +33,7 @@ GetVersionsJob::GetVersionsJob() GetVersionsJob::~GetVersionsJob() = default; -const QVector<QString>& GetVersionsJob::versions() const +const QStringList& GetVersionsJob::versions() const { return d->versions; } @@ -41,7 +41,7 @@ const QVector<QString>& GetVersionsJob::versions() const BaseJob::Status GetVersionsJob::parseJson(const QJsonDocument& data) { auto json = data.object(); - d->versions = fromJson<QVector<QString>>(json.value("versions")); + d->versions = fromJson<QStringList>(json.value("versions")); return Success; } |