]> git.proxmox.com Git - mirror_qemu.git/commit
QJSON: Use OBJECT_CHECK
authorEduardo Habkost <ehabkost@redhat.com>
Sat, 25 Apr 2015 15:28:06 +0000 (12:28 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 11 May 2015 12:59:07 +0000 (08:59 -0400)
commit4cf2d837340589155acfda993c51e66eb5800416
treef5fc732d73d8f5b01f82930d726d2296e3525828
parentb951cda21d6b232f138ccf008e12bce8ddc95465
QJSON: Use OBJECT_CHECK

The QJSON code used casts to (QJSON*) directly, instead of OBJECT_CHECK.
There were even some functions using object_dynamic_cast() calls
followed by assert(), which is exactly what OBJECT_CHECK does (by
calling object_dynamic_cast_assert()).

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qjson.c