summary refs log tree commit diff
path: root/src/Profile.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 19:56:33 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-06 19:56:33 +0300
commit73e73f46eaff4f2236b31ed5858738c6b5e26ea3 (patch)
tree3af375ca4be03bacb34aa72b173dd22a9f792380 /src/Profile.cc
parentInitialize sync timer (diff)
downloadnheko-73e73f46eaff4f2236b31ed5858738c6b5e26ea3.tar.xz
Use const refs for the deserialized data
Diffstat (limited to 'src/Profile.cc')
-rw-r--r--src/Profile.cc12
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");