diff options
Diffstat (limited to 'sources/shiboken2/generator/shiboken/shibokengenerator.cpp')
-rw-r--r-- | sources/shiboken2/generator/shiboken/shibokengenerator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/shiboken/shibokengenerator.cpp b/sources/shiboken2/generator/shiboken/shibokengenerator.cpp index c097f4355..5382b3a9f 100644 --- a/sources/shiboken2/generator/shiboken/shibokengenerator.cpp +++ b/sources/shiboken2/generator/shiboken/shibokengenerator.cpp @@ -300,8 +300,11 @@ QString ShibokenGenerator::translateTypeForWrapperMethod(const AbstractMetaType bool ShibokenGenerator::shouldGenerateCppWrapper(const AbstractMetaClass *metaClass) const { - if (metaClass->isNamespace() || (metaClass->attributes() & AbstractMetaAttributes::FinalCppClass)) + if (metaClass->isNamespace() + || metaClass->attributes().testFlag(AbstractMetaAttributes::FinalCppClass) + || metaClass->typeEntry()->typeFlags().testFlag(ComplexTypeEntry::DisableWrapper)) { return false; + } bool result = metaClass->isPolymorphic() || metaClass->hasVirtualDestructor(); if (avoidProtectedHack()) { result = result || metaClass->hasProtectedFields() || metaClass->hasProtectedDestructor(); |