summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-08-09 19:43:47 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-08-10 13:54:30 -0300
commit6a30e5a2504bbfda064c08176009cd61b53d4abf (patch)
treed3bac981e97bfa4d61a0ca4d8a139bcb4d44ac44
parent15c44f115f2b282110be1607eb1d2874fbaded32 (diff)
downloadgeneratorrunner-6a30e5a2504bbfda064c08176009cd61b53d4abf.tar.gz
generatorrunner-6a30e5a2504bbfda064c08176009cd61b53d4abf.tar.xz
generatorrunner-6a30e5a2504bbfda064c08176009cd61b53d4abf.zip
Fixed minimalConstructor(TypeEntry*) to handle classes.
Reviewed by Lauro Moura <lauro.neto@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-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();
}