Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
if (className.isEmpty())
className = QLatin1String("QDBusInterface");
- QVarLengthArray<int> idata;
- idata.resize(sizeof(QDBusMetaObjectPrivate) / sizeof(int));
+ static const int QDBusMetaObjectPrivateSize = (sizeof(QDBusMetaObjectPrivate) / sizeof(int));
+ QVarLengthArray<int> idata(QDBusMetaObjectPrivateSize);
QDBusMetaObjectPrivate *header = reinterpret_cast<QDBusMetaObjectPrivate *>(idata.data());
header->revision = qmetaobjectrevision;