qdbuscpp2xml: Don't silently ignore unregistered property types

Change-Id: Icf23804cc4992314785f07cdc6aaf76eeea56465
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Luca Weiss 2018-09-23 19:33:18 +02:00 committed by Liang Qi
parent d38f635355
commit b26ce2f0bf
1 changed files with 4 additions and 1 deletions

View File

@ -212,8 +212,11 @@ static QString generateInterfaceXml(const ClassDef *mo)
access |= 2;
int typeId = QMetaType::type(mp.type.constData());
if (!typeId)
if (!typeId) {
fprintf(stderr, PROGRAMNAME ": unregistered type: '%s', ignoring\n",
mp.type.constData());
continue;
}
const char *signature = QDBusMetaType::typeToSignature(typeId);
if (!signature)
continue;