aboutsummaryrefslogtreecommitdiffstats
path: root/generator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator.cpp')
-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 {