aboutsummaryrefslogtreecommitdiff
path: root/json-streamer.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-05-19 17:17:05 -0300
committerLuiz Capitulino <lcapitulino@redhat.com>2010-06-11 15:25:14 -0300
commit2e89c0688993447ed62a1832dcd97c19c878a382 (patch)
tree41e951a083af9ed20ff83a42a355aabe159ad5fc /json-streamer.c
parentecb50f5fefe7e1360818bd199218a295d87df042 (diff)
json-streamer: Don't use qdict_put_obj()
It's not needed, use qobject_put() instead and get a cleaner code. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'json-streamer.c')
-rw-r--r--json-streamer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/json-streamer.c b/json-streamer.c
index 610ffea6db..f7e7a68d40 100644
--- 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);