diff options
-rw-r--r-- | generator.cpp | 2 |
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 { |