mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 15:42:09 -06:00
qom/object: fix iterating properties over a class
object_class_property_iter_init() starts from the given class, so the next class should continue with the parent class. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
9cbef9d68e
commit
684546d8e9
1 changed files with 1 additions and 1 deletions
|
@ -1115,7 +1115,7 @@ void object_class_property_iter_init(ObjectPropertyIterator *iter,
|
||||||
ObjectClass *klass)
|
ObjectClass *klass)
|
||||||
{
|
{
|
||||||
g_hash_table_iter_init(&iter->iter, klass->properties);
|
g_hash_table_iter_init(&iter->iter, klass->properties);
|
||||||
iter->nextclass = klass;
|
iter->nextclass = object_class_get_parent(klass);
|
||||||
}
|
}
|
||||||
|
|
||||||
ObjectProperty *object_class_property_find(ObjectClass *klass, const char *name,
|
ObjectProperty *object_class_property_find(ObjectClass *klass, const char *name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue