aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/push_condition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/push_condition.cpp')
-rw-r--r--lib/csapi/definitions/push_condition.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/csapi/definitions/push_condition.cpp b/lib/csapi/definitions/push_condition.cpp
index 149419f4..b8595ec6 100644
--- a/lib/csapi/definitions/push_condition.cpp
+++ b/lib/csapi/definitions/push_condition.cpp
@@ -9,10 +9,10 @@ using namespace QMatrixClient;
QJsonObject QMatrixClient::toJson(const PushCondition& pod)
{
QJsonObject _json;
- addToJson<>(_json, "kind", pod.kind);
- addToJson<IfNotEmpty>(_json, "key", pod.key);
- addToJson<IfNotEmpty>(_json, "pattern", pod.pattern);
- addToJson<IfNotEmpty>(_json, "is", pod.is);
+ addParam<>(_json, "kind", pod.kind);
+ addParam<IfNotEmpty>(_json, "key", pod.key);
+ addParam<IfNotEmpty>(_json, "pattern", pod.pattern);
+ addParam<IfNotEmpty>(_json, "is", pod.is);
return _json;
}