diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-04 14:31:40 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-09-04 14:38:24 -0300 |
commit | 62bd01fd2bccb01fdb2eb9eeaf07db4ed1ae5838 (patch) | |
tree | 76ccabd0e5d91ceac431a2efc9300c9876d9ddaa /generators | |
parent | 879ca025fc24bb79c5744557fc4a14e186e9f61c (diff) |
Fixed bug#26.
Reviewed by Renato Araújo
Diffstat (limited to 'generators')
-rw-r--r-- | generators/boostpython/cppgenerator.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generators/boostpython/cppgenerator.cpp b/generators/boostpython/cppgenerator.cpp index c621aac41..2aa718fba 100644 --- a/generators/boostpython/cppgenerator.cpp +++ b/generators/boostpython/cppgenerator.cpp @@ -1147,7 +1147,8 @@ void CppGenerator::writeFunctionArgsDef(QTextStream &sOut, QString defaultValue = arg->defaultValueExpression(); bool isPointer = arg->type()->isObject() || arg->type()->isQObject() || - arg->type()->isValuePointer(); + arg->type()->isValuePointer() || + arg->type()->isNativePointer(); if (isPointer && defaultValue == "0") { defaultValue = "python::object()"; |