keep it working in UBSAN
| 80 | #if defined(Q_CC_CLANG) || defined(Q_CC_GNU) |
| 81 | // keep it working in UBSAN |
| 82 | __attribute__((no_sanitize("vptr"))) |
| 83 | #endif |
| 84 | static inline bool |
| 85 | hasDynamicMetaObject(const QObject *object) |
| 86 | { |
| 87 | return reinterpret_cast<const UnprotectedQObject *>(object)->data()->metaObject != nullptr; |
| 88 | } |
| 89 | |
| 90 | MetaObjectRegistry::MetaObjectRegistry(QObject *parent) |
| 91 | : QObject(parent) |