mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
qom/container: remove .instance_size initializer from container_info
You can omit .instance_size if it is the same as that of the parent. .class_size = sizeof(ObjectClass) ... is omitted here, so removing .instance_size is more consistent. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Message-Id: <20200513033600.2709646-1-masahiroy@kernel.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e27a959581
commit
c5e1870958
@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
static const TypeInfo container_info = {
|
static const TypeInfo container_info = {
|
||||||
.name = "container",
|
.name = "container",
|
||||||
.instance_size = sizeof(Object),
|
|
||||||
.parent = TYPE_OBJECT,
|
.parent = TYPE_OBJECT,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user