diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-10 14:24:23 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-10 16:16:06 -0300 |
commit | 6485031031d546abbec2b761546e7ed3eb3e1ff1 (patch) | |
tree | df71988b92d2db9c30b1a61fce25a677ef9c69f0 | |
parent | 96b70b2d4c22e97dd88924886454e7cfb0172136 (diff) |
Use 0 as default value to Valuepointer.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | cppgenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cppgenerator.cpp b/cppgenerator.cpp index 9d409c161..1e9b3877f 100644 --- a/cppgenerator.cpp +++ b/cppgenerator.cpp @@ -917,7 +917,7 @@ void CppGenerator::writeMinimalConstructorCallArguments(QTextStream& s, const Ab Q_ASSERT(metaType); const TypeEntry* type = metaType->typeEntry(); - if (type->isObject()) { + if (type->isObject() || metaType->isValuePointer()) { s << "0"; } else if (type->isPrimitive()) { const PrimitiveTypeEntry* primitiveTypeEntry = reinterpret_cast<const PrimitiveTypeEntry*>(type); |