]> git.proxmox.com Git - mirror_qemu.git/commit
qobject: Drop useless QObject casts
authorEric Blake <eblake@redhat.com>
Thu, 27 Apr 2017 21:58:15 +0000 (16:58 -0500)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 31 Jul 2017 22:07:06 +0000 (17:07 -0500)
commit3f308bf3acc724d50ffa3f280f75f4c7b5bb6003
tree99bbdc79a2fdf02a5440a2ea9285c88e996aa593
parent21047240d01ac8a8b90f65b8bc41b289ee3ba6ff
qobject: Drop useless QObject casts

We have macros in place to make it less verbose to add a subtype
of QObject to both QDict and QList. While we have made cleanups
like this in the past (see commit fcfcd8ffc, for example), having
it be automated by Coccinelle makes it easier to maintain.

Patch created mechanically via:
  spatch --sp-file scripts/coccinelle/qobject.cocci \
    --macro-file scripts/cocci-macro-file.h --dir . --in-place
then I verified that no manual touchups were required.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20170427215821.19397-5-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
(cherry picked from commit de6e7951fe66053dfeaac1a237f7aceb9e079619)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block.c
block/blkdebug.c
block/blkverify.c
block/file-posix.c
block/file-win32.c
block/quorum.c
tests/check-qdict.c
tests/test-qmp-commands.c