qom: make user_creatable_complete() specific to UserCreatable
Instead of accepting any Object*, change user_creatable_complete() to require a UserCreatable*. Modify the callers to pass the appropriate argument, removing redundant dynamic cast checks in object creation. Signed-off-by:Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by:
Igor Mammedov <imammedo@redhat.com> Reviewed-by:
Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20181204142023.15982-4-marcandre.lureau@redhat.com> Signed-off-by:
Eduardo Habkost <ehabkost@redhat.com>
Showing
- hw/misc/ivshmem.c 1 addition, 1 deletionhw/misc/ivshmem.c
- hw/virtio/virtio-rng.c 1 addition, 1 deletionhw/virtio/virtio-rng.c
- include/qom/object_interfaces.h 2 additions, 2 deletionsinclude/qom/object_interfaces.h
- qom/object.c 8 additions, 4 deletionsqom/object.c
- qom/object_interfaces.c 3 additions, 11 deletionsqom/object_interfaces.c
Loading
Please register or sign in to comment