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/Register.cc | |
parent | 7dde3a15d4fa2b968bf3259ffc39d1689f138744 (diff) |
Remove exception specifications
Diffstat (limited to 'src/Register.cc')
-rw-r--r-- | src/Register.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Register.cc b/src/Register.cc index 4c14b400..4f4e4ded 100644 --- a/src/Register.cc +++ b/src/Register.cc @@ -32,7 +32,7 @@ RegisterRequest::RegisterRequest(const QString &username, const QString &passwor { } -QByteArray RegisterRequest::serialize() +QByteArray RegisterRequest::serialize() noexcept { QJsonObject body{ {"username", user_}, @@ -41,7 +41,7 @@ QByteArray RegisterRequest::serialize() return QJsonDocument(body).toJson(QJsonDocument::Compact); } -void RegisterResponse::deserialize(const QJsonDocument &data) throw(DeserializationException) +void RegisterResponse::deserialize(const QJsonDocument &data) { if (!data.isObject()) throw DeserializationException("Response is not a JSON object"); |