aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-19 18:50:57 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:12 -0300
commit548b2ea5b535b5a80ddf4881430faef064c7226c (patch)
tree0cde4fb91cf56f0931de9c8b2a10b0d05f246026 /typesystem.cpp
parent59d60a65b22acf21f62314dd5ab6a047509bb7e4 (diff)
Fix TypeEntry::isCppPrimitive to return true on void types.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
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"};