On 06/09/2017 10:28 AM, Marc-André Lureau wrote:
> On Fri, Jun 9, 2017 at 7:20 PM Eric Blake <address@hidden> wrote:
>> A recent patch submission was about to use qobject_decref(QOBJECT(E)),
>> even though we already have QDECREF(E) for that purpose. While our
>> tree is currently free from the longhand form, we might as well update
> $ git grep 'object_unref(OBJECT(' | wc -l
Quit mixing QOM and QObject ;)
$ git grep qobject_'..cref(QOBJECT'
Yeah, I got mixed by your comments, my patch doesn't do qobject_decref(QOBJECT(E)) but object_unref(OBJECT(E)), which doesn't have macro helper afaik.
Yes, we may want to add a script to clean QOM abuses, but that's a
different project for a different day.
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org