util: remove the obsolete non-blocking connect
[qemu/ar7.git] / scripts / coccinelle / qobject.cocci
blobc518caf7b1ca37a75c71346e3b3154756ac66d6a
1 // Use QDict macros where they make sense
2 @@
3 expression Obj, Key, E;
4 @@
6 - qobject_incref(QOBJECT(E));
7 + QINCREF(E);
9 - qobject_decref(QOBJECT(E));
10 + QDECREF(E);
12 - qdict_put_obj(Obj, Key, QOBJECT(E));
13 + qdict_put(Obj, Key, E);
15 - qdict_put(Obj, Key, qnum_from_int(E));
16 + qdict_put_int(Obj, Key, E);
18 - qdict_put(Obj, Key, qbool_from_bool(E));
19 + qdict_put_bool(Obj, Key, E);
21 - qdict_put(Obj, Key, qstring_from_str(E));
22 + qdict_put_str(Obj, Key, E);
25 // Use QList macros where they make sense
27 expression Obj, E;
30 - qlist_append_obj(Obj, QOBJECT(E));
31 + qlist_append(Obj, E);
33 - qlist_append(Obj, qnum_from_int(E));
34 + qlist_append_int(Obj, E);
36 - qlist_append(Obj, qbool_from_bool(E));
37 + qlist_append_bool(Obj, E);
39 - qlist_append(Obj, qstring_from_str(E));
40 + qlist_append_str(Obj, E);