mirror of
https://github.com/mii443/qemu.git
synced 2025-12-04 19:48:31 +00:00
qapi: Fix QAPISchemaEnumType.is_implicit() for 'QType'
Missed in commit 7264f5c. Harmless, because nothing checks whether an
enumeration type is implicit so far.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1489582656-31133-14-git-send-email-armbru@redhat.com>
This commit is contained in:
@@ -1152,8 +1152,8 @@ class QAPISchemaEnumType(QAPISchemaType):
|
|||||||
v.check_clash(self.info, seen)
|
v.check_clash(self.info, seen)
|
||||||
|
|
||||||
def is_implicit(self):
|
def is_implicit(self):
|
||||||
# See QAPISchema._make_implicit_enum_type()
|
# See QAPISchema._make_implicit_enum_type() and ._def_predefineds()
|
||||||
return self.name.endswith('Kind')
|
return self.name.endswith('Kind') or self.name == 'QType'
|
||||||
|
|
||||||
def c_type(self):
|
def c_type(self):
|
||||||
return c_name(self.name)
|
return c_name(self.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user