mirror of
https://github.com/qemu/qemu.git
synced 2026-05-17 15:39:58 +00:00
qdict: Add qdict_put_null() helper, and put it to use
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20170825105913.4060-2-marcandre.lureau@redhat.com> [Update to qobject.cocci squashed in, commit message tweaked] Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
f90cb2846a
commit
0f9afc2a8b
@@ -20,6 +20,9 @@ expression Obj, Key, E;
|
||||
|
|
||||
- qdict_put(Obj, Key, qstring_from_str(E));
|
||||
+ qdict_put_str(Obj, Key, E);
|
||||
|
|
||||
- qdict_put(Obj, Key, qnull());
|
||||
+ qdict_put_null(Obj, Key);
|
||||
)
|
||||
|
||||
// Use QList macros where they make sense
|
||||
|
||||
Reference in New Issue
Block a user