aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/push_ruleset.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/push_ruleset.cpp')
-rw-r--r--lib/csapi/definitions/push_ruleset.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/csapi/definitions/push_ruleset.cpp b/lib/csapi/definitions/push_ruleset.cpp
index 98d79248..ca2bbc0d 100644
--- a/lib/csapi/definitions/push_ruleset.cpp
+++ b/lib/csapi/definitions/push_ruleset.cpp
@@ -9,11 +9,11 @@ using namespace QMatrixClient;
QJsonObject QMatrixClient::toJson(const PushRuleset& pod)
{
QJsonObject _json;
- addToJson<IfNotEmpty>(_json, "content", pod.content);
- addToJson<IfNotEmpty>(_json, "override", pod.override);
- addToJson<IfNotEmpty>(_json, "room", pod.room);
- addToJson<IfNotEmpty>(_json, "sender", pod.sender);
- addToJson<IfNotEmpty>(_json, "underride", pod.underride);
+ addParam<IfNotEmpty>(_json, "content", pod.content);
+ addParam<IfNotEmpty>(_json, "override", pod.override);
+ addParam<IfNotEmpty>(_json, "room", pod.room);
+ addParam<IfNotEmpty>(_json, "sender", pod.sender);
+ addParam<IfNotEmpty>(_json, "underride", pod.underride);
return _json;
}