aboutsummaryrefslogtreecommitdiffstats
path: root/generator/shibokengenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generator/shibokengenerator.cpp')
-rw-r--r--generator/shibokengenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/shibokengenerator.cpp b/generator/shibokengenerator.cpp
index 64c941460..b6d863942 100644
--- a/generator/shibokengenerator.cpp
+++ b/generator/shibokengenerator.cpp
@@ -864,7 +864,7 @@ bool ShibokenGenerator::isWrapperType(const AbstractMetaType* metaType)
bool ShibokenGenerator::isPointerToWrapperType(const AbstractMetaType* type)
{
- return isObjectType(type) || type->isValuePointer();
+ return (isObjectType(type) && type->indirections() == 1) || type->isValuePointer();
}
bool ShibokenGenerator::shouldDereferenceArgumentPointer(const AbstractMetaArgument* arg)