summary refs log tree commit diff
path: root/src/RoomMessages.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-10 12:59:21 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-10 12:59:21 +0300
commit1bfe48de7512a1f80a721c89127f1491641fd7a7 (patch)
tree0312f020eeff7425e2681a7c6c2c327c28fc05ce /src/RoomMessages.cc
parentAllow port number as part of the hostname (diff)
downloadnheko-1bfe48de7512a1f80a721c89127f1491641fd7a7.tar.xz
Style change again
Diffstat (limited to 'src/RoomMessages.cc')
-rw-r--r--src/RoomMessages.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/RoomMessages.cc b/src/RoomMessages.cc
index 14155de9..8f6ba450 100644
--- a/src/RoomMessages.cc
+++ b/src/RoomMessages.cc
@@ -20,24 +20,24 @@
 void
 RoomMessages::deserialize(const QJsonDocument &data)
 {
-	if (!data.isObject())
-		throw DeserializationException("response is not a JSON object");
+        if (!data.isObject())
+                throw DeserializationException("response is not a JSON object");
 
-	QJsonObject object = data.object();
+        QJsonObject object = data.object();
 
-	if (!object.contains("start"))
-		throw DeserializationException("start key is missing");
+        if (!object.contains("start"))
+                throw DeserializationException("start key is missing");
 
-	if (!object.contains("end"))
-		throw DeserializationException("end key is missing");
+        if (!object.contains("end"))
+                throw DeserializationException("end key is missing");
 
-	if (!object.contains("chunk"))
-		throw DeserializationException("chunk key is missing");
+        if (!object.contains("chunk"))
+                throw DeserializationException("chunk key is missing");
 
-	if (!object.value("chunk").isArray())
-		throw DeserializationException("chunk isn't a JSON array");
+        if (!object.value("chunk").isArray())
+                throw DeserializationException("chunk isn't a JSON array");
 
-	start_ = object.value("start").toString();
-	end_ = object.value("end").toString();
-	chunk_ = object.value("chunk").toArray();
+        start_ = object.value("start").toString();
+        end_   = object.value("end").toString();
+        chunk_ = object.value("chunk").toArray();
 }