diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-09 18:09:09 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-04-09 18:09:09 +0300 |
commit | b301a2828e71f50d65c796ce988c9b3c332d7156 (patch) | |
tree | eabfc6dcba3b842cd20fe290db117ebbc498ed9a /src/Sync.cc | |
parent | Add appveyor CI (diff) | |
download | nheko-b301a2828e71f50d65c796ce988c9b3c332d7156.tar.xz |
Remove exception specifications
Diffstat (limited to '')
-rw-r--r-- | src/Sync.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Sync.cc b/src/Sync.cc index b51ecff7..50b49fc6 100644 --- a/src/Sync.cc +++ b/src/Sync.cc @@ -24,7 +24,7 @@ #include "Deserializable.h" #include "Sync.h" -void SyncResponse::deserialize(const QJsonDocument &data) throw(DeserializationException) +void SyncResponse::deserialize(const QJsonDocument &data) { if (!data.isObject()) throw DeserializationException("Sync response is not a JSON object"); @@ -41,7 +41,7 @@ void SyncResponse::deserialize(const QJsonDocument &data) throw(DeserializationE next_batch_ = object.value("next_batch").toString(); } -void Rooms::deserialize(const QJsonValue &data) throw(DeserializationException) +void Rooms::deserialize(const QJsonValue &data) { if (!data.isObject()) throw DeserializationException("Rooms value is not a JSON object"); @@ -81,7 +81,7 @@ void Rooms::deserialize(const QJsonValue &data) throw(DeserializationException) } } -void JoinedRoom::deserialize(const QJsonValue &data) throw(DeserializationException) +void JoinedRoom::deserialize(const QJsonValue &data) { if (!data.isObject()) throw DeserializationException("JoinedRoom is not a JSON object"); @@ -112,7 +112,7 @@ void JoinedRoom::deserialize(const QJsonValue &data) throw(DeserializationExcept timeline_.deserialize(object.value("timeline")); } -void Event::deserialize(const QJsonValue &data) throw(DeserializationException) +void Event::deserialize(const QJsonValue &data) { if (!data.isObject()) throw DeserializationException("Event is not a JSON object"); @@ -152,7 +152,7 @@ void Event::deserialize(const QJsonValue &data) throw(DeserializationException) origin_server_ts_ = object.value("origin_server_ts").toDouble(); } -void State::deserialize(const QJsonValue &data) throw(DeserializationException) +void State::deserialize(const QJsonValue &data) { if (!data.isArray()) throw DeserializationException("State is not a JSON array"); @@ -172,7 +172,7 @@ void State::deserialize(const QJsonValue &data) throw(DeserializationException) } } -void Timeline::deserialize(const QJsonValue &data) throw(DeserializationException) +void Timeline::deserialize(const QJsonValue &data) { if (!data.isObject()) throw DeserializationException("Timeline is not a JSON object"); |