aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-07-25 16:52:50 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2011-07-28 18:32:32 -0300
commita24119d9cf8ce72c88d037069cb90aa8cc9a82a2 (patch)
treee196952b00aa5e60d78ad75547ad646a559e283b
parent43cb18d6e9367933c1b8c7c17a461ebd45d7d645 (diff)
Fixed Generator::translateType() method treatment for "void" types.
Reviewed by Hugo Parente <hugo.lima@openbossa.org> Reviewed by Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--generator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator.cpp b/generator.cpp
index cafbecc0e..dc90f4b78 100644
--- a/generator.cpp
+++ b/generator.cpp
@@ -505,7 +505,7 @@ QString Generator::translateType(const AbstractMetaType *cType,
copyType->setReference(false);
s = copyType->cppSignature();
- if (!copyType->typeEntry()->isCppPrimitive())
+ if (!copyType->typeEntry()->isVoid() && !copyType->typeEntry()->isCppPrimitive())
s.prepend("::");
delete copyType;
} else {