summaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator.cpp')
-rw-r--r--generator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/generator.cpp b/generator.cpp
index cc60be6..70f62e6 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -365,6 +365,9 @@ QString Generator::minimalConstructor(const TypeEntry* type) const
return (ctor.isEmpty()) ? QString("::%1()").arg(type->qualifiedCppName()) : ctor;
}
+ if (type->isComplex())
+ return minimalConstructor(classes().findClass(type));
+
return QString();
}