mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
qobject: Drop QObject_HEAD
QObject_HEAD is a macro expanding into the common part of structs that are sub-types of QObject. It's always been just QObject base, and unlikely to change. Drop the macro, because the code is clearer with out it. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1444918537-18107-2-git-send-email-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
7bc8e0c967
commit
c7c462123c
7 changed files with 6 additions and 10 deletions
|
@ -17,7 +17,7 @@
|
|||
#include "qapi/qmp/qobject.h"
|
||||
|
||||
typedef struct QString {
|
||||
QObject_HEAD;
|
||||
QObject base;
|
||||
char *string;
|
||||
size_t length;
|
||||
size_t capacity;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue