From 73e73f46eaff4f2236b31ed5858738c6b5e26ea3 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 6 Apr 2017 19:56:33 +0300 Subject: Use const refs for the deserialized data --- src/Profile.cc | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'src/Profile.cc') 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"); -- cgit 1.5.1