diff options
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()"; |