aboutsummaryrefslogtreecommitdiffstats
path: root/generators
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-04 14:31:40 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-04 14:38:24 -0300
commit62bd01fd2bccb01fdb2eb9eeaf07db4ed1ae5838 (patch)
tree76ccabd0e5d91ceac431a2efc9300c9876d9ddaa /generators
parent879ca025fc24bb79c5744557fc4a14e186e9f61c (diff)
Fixed bug#26.
Reviewed by Renato Araújo
Diffstat (limited to 'generators')
-rw-r--r--generators/boostpython/cppgenerator.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/generators/boostpython/cppgenerator.cpp b/generators/boostpython/cppgenerator.cpp
index c621aac..2aa718f 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()";