mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
qom: Make InterfaceInfo[] uses const
Mechanical change using:
$ sed -i -E 's/\(InterfaceInfo.?\[/\(const InterfaceInfo\[/g' \
$(git grep -lE '\(InterfaceInfo.?\[\]\)')
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250424194905.82506-7-philmd@linaro.org>
This commit is contained in:
@@ -52,7 +52,7 @@ static const TypeInfo direct_impl_info = {
|
||||
.name = TYPE_DIRECT_IMPL,
|
||||
.parent = TYPE_OBJECT,
|
||||
.class_init = test_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ TYPE_TEST_IF },
|
||||
{ }
|
||||
}
|
||||
|
||||
@@ -164,7 +164,7 @@ static const TypeInfo dummy_info = {
|
||||
.instance_finalize = dummy_finalize,
|
||||
.class_size = sizeof(DummyObjectClass),
|
||||
.class_init = dummy_class_init,
|
||||
.interfaces = (InterfaceInfo[]) {
|
||||
.interfaces = (const InterfaceInfo[]) {
|
||||
{ TYPE_USER_CREATABLE },
|
||||
{ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user