1// Use QDict macros where they make sense
2@@
3expression Obj, Key, E;
4@@
5(
6- qdict_put_obj(Obj, Key, QOBJECT(E));
7+ qdict_put(Obj, Key, E);
8|
9- qdict_put(Obj, Key, qint_from_int(E));
10+ qdict_put_int(Obj, Key, E);
11|
12- qdict_put(Obj, Key, qbool_from_bool(E));
13+ qdict_put_bool(Obj, Key, E);
14|
15- qdict_put(Obj, Key, qstring_from_str(E));
16+ qdict_put_str(Obj, Key, E);
17)
18
19// Use QList macros where they make sense
20@@
21expression Obj, E;
22@@
23(
24- qlist_append_obj(Obj, QOBJECT(E));
25+ qlist_append(Obj, E);
26|
27- qlist_append(Obj, qint_from_int(E));
28+ qlist_append_int(Obj, E);
29|
30- qlist_append(Obj, qbool_from_bool(E));
31+ qlist_append_bool(Obj, E);
32|
33- qlist_append(Obj, qstring_from_str(E));
34+ qlist_append_str(Obj, E);
35)
36