diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-09 22:58:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 22:58:21 +0200 |
commit | 5d9443fccf2d336f16d6beacb5e1775c79123c02 (patch) | |
tree | fe5ba377808dfa7c3564dbe013e9894035c303f4 /lib/csapi/profile.h | |
parent | bf6303c41264d913ca049009034aa948464b8f30 (diff) | |
parent | e5a760371a158bec6a70353b96614611adecc4bc (diff) | |
download | libquotient-5d9443fccf2d336f16d6beacb5e1775c79123c02.tar.gz libquotient-5d9443fccf2d336f16d6beacb5e1775c79123c02.zip |
Merge pull request #492 from quotient-im/kitsune-qurl-in-csapi
Use QUrl in CS API backend
Diffstat (limited to 'lib/csapi/profile.h')
-rw-r--r-- | lib/csapi/profile.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/csapi/profile.h b/lib/csapi/profile.h index 8bbe4f8c..7f9c9e95 100644 --- a/lib/csapi/profile.h +++ b/lib/csapi/profile.h @@ -73,7 +73,7 @@ public: * \param avatarUrl * The new avatar URL for this user. */ - explicit SetAvatarUrlJob(const QString& userId, const QString& avatarUrl); + explicit SetAvatarUrlJob(const QString& userId, const QUrl& avatarUrl); }; /*! \brief Get the user's avatar URL. @@ -101,7 +101,7 @@ public: // Result properties /// The user's avatar URL if they have set one, otherwise not present. - QString avatarUrl() const { return loadFromJson<QString>("avatar_url"_ls); } + QUrl avatarUrl() const { return loadFromJson<QUrl>("avatar_url"_ls); } }; /*! \brief Get this user's profile information. @@ -130,7 +130,7 @@ public: // Result properties /// The user's avatar URL if they have set one, otherwise not present. - QString avatarUrl() const { return loadFromJson<QString>("avatar_url"_ls); } + QUrl avatarUrl() const { return loadFromJson<QUrl>("avatar_url"_ls); } /// The user's display name if they have set one, otherwise not present. QString displayname() const |