summaryrefslogtreecommitdiffstats
path: root/cppgenerator.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2010-01-26 18:34:32 -0200
committerHugo Lima <hugo.lima@openbossa.org>2010-01-26 22:15:52 -0200
commit59bf883ba7a3678ad11e9eed7ddc93636b4c3424 (patch)
treebbd3a8ec4a8fd35e0801ed1b39c39af078e0b631 /cppgenerator.cpp
parente5654bd14cc0d034192104bb4325ba639d4f043c (diff)
downloadshiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.tar.gz
shiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.tar.xz
shiboken-59bf883ba7a3678ad11e9eed7ddc93636b4c3424.zip
writeMinimalConstructorCallArguments knowns about enums.
Diffstat (limited to 'cppgenerator.cpp')
-rw-r--r--cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp
index 01d46bc5..63c0ef65 100644
--- a/cppgenerator.cpp
+++ b/cppgenerator.cpp
@@ -627,7 +627,7 @@ void CppGenerator::writeMinimalConstructorCallArguments(QTextStream& s, const Ab
if (type->isPrimitive() || type->isObject()) {
s << "0";
- } else if (type->isContainer() || type->isFlags()){
+ } else if (type->isContainer() || type->isFlags() || type->isEnum()){
s << metaType->cppSignature() << "()";
} else {
// this is slowwwww, FIXME: Fix the API od APIExtractor, these things should be easy!