aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 3c09524a3..063a4e53e 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -2008,7 +2008,7 @@ static bool strLess(const char* a, const char* b)
bool TypeEntry::isCppPrimitive() const
{
- if (m_name.contains(' '))
+ if (m_name.contains(' ') || m_type == VoidType)
return true;
// Keep this sorted!!
static const char* cppTypes[] = { "bool", "char", "double", "float", "int", "long", "short", "wchar_t"};