aboutsummaryrefslogtreecommitdiff
path: root/scripts/coccinelle/qobject.cocci
blob: aa899e2f3b86ffb16c0a9e2b6e00c41b4bb495c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Use QDict macros where they make sense
@@
expression Obj, Key, E;
@@
- qdict_put_obj(Obj, Key, QOBJECT(E));
+ qdict_put(Obj, Key, E);

// Use QList macros where they make sense
@@
expression Obj, E;
@@
- qlist_append_obj(Obj, QOBJECT(E));
+ qlist_append(Obj, E);