aboutsummaryrefslogtreecommitdiff
path: root/scripts/coccinelle/qobject.cocci
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/coccinelle/qobject.cocci')
-rw-r--r--scripts/coccinelle/qobject.cocci3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/coccinelle/qobject.cocci b/scripts/coccinelle/qobject.cocci
index c518caf7b1..1120eb1a42 100644
--- a/scripts/coccinelle/qobject.cocci
+++ b/scripts/coccinelle/qobject.cocci
@@ -20,6 +20,9 @@ expression Obj, Key, E;
|
- qdict_put(Obj, Key, qstring_from_str(E));
+ qdict_put_str(Obj, Key, E);
+|
+- qdict_put(Obj, Key, qnull());
++ qdict_put_null(Obj, Key);
)
// Use QList macros where they make sense