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