diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-06 19:56:33 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-06 19:56:33 +0300 |
commit | 73e73f46eaff4f2236b31ed5858738c6b5e26ea3 (patch) | |
tree | 3af375ca4be03bacb34aa72b173dd22a9f792380 /src/Profile.cc | |
parent | Initialize sync timer (diff) | |
download | nheko-73e73f46eaff4f2236b31ed5858738c6b5e26ea3.tar.xz |
Use const refs for the deserialized data
Diffstat (limited to 'src/Profile.cc')
-rw-r--r-- | src/Profile.cc | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/Profile.cc b/src/Profile.cc index aa556370..2322834a 100644 --- a/src/Profile.cc +++ b/src/Profile.cc @@ -22,17 +22,7 @@ #include "Deserializable.h" #include "Profile.h" -QUrl ProfileResponse::getAvatarUrl() -{ - return avatar_url_; -} - -QString ProfileResponse::getDisplayName() -{ - return display_name_; -} - -void ProfileResponse::deserialize(QJsonDocument data) throw(DeserializationException) +void ProfileResponse::deserialize(const QJsonDocument &data) throw(DeserializationException) { if (!data.isObject()) throw DeserializationException("Profile response is not a JSON object"); |