projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb50f5
)
json-streamer: Don't use qdict_put_obj()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Wed, 19 May 2010 20:17:05 +0000
(17:17 -0300)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Fri, 11 Jun 2010 18:25:14 +0000
(15:25 -0300)
It's not needed, use qobject_put() instead and get a cleaner code.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
json-streamer.c
patch
|
blob
|
history
diff --git
a/json-streamer.c
b/json-streamer.c
index 610ffea6db33707ed9e70ea0448e5f01c9e75717..f7e7a68d409f05731a47ef8e338b1f95c1b90682 100644
(file)
--- a/
json-streamer.c
+++ b/
json-streamer.c
@@
-43,11
+43,11
@@
static void json_message_process_token(JSONLexer *lexer, QString *token, JSONTok
}
dict = qdict_new();
- qdict_put
_obj(dict, "type", QOBJECT(qint_from_int(type)
));
+ qdict_put
(dict, "type", qint_from_int(type
));
QINCREF(token);
- qdict_put
_obj(dict, "token", QOBJECT(token)
);
- qdict_put
_obj(dict, "x", QOBJECT(qint_from_int(x)
));
- qdict_put
_obj(dict, "y", QOBJECT(qint_from_int(y)
));
+ qdict_put
(dict, "token", token
);
+ qdict_put
(dict, "x", qint_from_int(x
));
+ qdict_put
(dict, "y", qint_from_int(y
));
qlist_append(parser->tokens, dict);