]>
Commit | Line | Data |
---|---|---|
21047240 EB |
1 | // Use QDict macros where they make sense |
2 | @@ | |
3 | expression Obj, Key, E; | |
4 | @@ | |
396474a1 | 5 | ( |
21047240 EB |
6 | - qdict_put_obj(Obj, Key, QOBJECT(E)); |
7 | + qdict_put(Obj, Key, E); | |
396474a1 EB |
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 | ) | |
21047240 EB |
18 | |
19 | // Use QList macros where they make sense | |
20 | @@ | |
21 | expression Obj, E; | |
22 | @@ | |
396474a1 | 23 | ( |
21047240 EB |
24 | - qlist_append_obj(Obj, QOBJECT(E)); |
25 | + qlist_append(Obj, E); | |
396474a1 EB |
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 | ) |