diff options
Diffstat (limited to 'lib/csapi/login.cpp')
-rw-r--r-- | lib/csapi/login.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/csapi/login.cpp b/lib/csapi/login.cpp index 7e162871..e0795f8a 100644 --- a/lib/csapi/login.cpp +++ b/lib/csapi/login.cpp @@ -27,14 +27,14 @@ LoginJob::LoginJob(const QString& type, const QString& user, const QString& medi , d(new Private) { QJsonObject _data; - addToJson<>(_data, "type", type); - addToJson<IfNotEmpty>(_data, "user", user); - addToJson<IfNotEmpty>(_data, "medium", medium); - addToJson<IfNotEmpty>(_data, "address", address); - addToJson<IfNotEmpty>(_data, "password", password); - addToJson<IfNotEmpty>(_data, "token", token); - addToJson<IfNotEmpty>(_data, "device_id", deviceId); - addToJson<IfNotEmpty>(_data, "initial_device_display_name", initialDeviceDisplayName); + addParam<>(_data, "type", type); + addParam<IfNotEmpty>(_data, "user", user); + addParam<IfNotEmpty>(_data, "medium", medium); + addParam<IfNotEmpty>(_data, "address", address); + addParam<IfNotEmpty>(_data, "password", password); + addParam<IfNotEmpty>(_data, "token", token); + addParam<IfNotEmpty>(_data, "device_id", deviceId); + addParam<IfNotEmpty>(_data, "initial_device_display_name", initialDeviceDisplayName); setRequestData(_data); } |