From 083d500b97e2ad5ac85402f7a6df068ca2ecbd73 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Fri, 26 Feb 2010 15:00:19 -0300 Subject: Shiboken generator now supports references to pointers as arguments. Two methods with references to object type and value type pointers were added to BlackBox test class just to check the compilation. Reviewed by Hugo Parente --- shibokengenerator.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shibokengenerator.cpp') diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 5a7ec5869..9500f5641 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -583,7 +583,9 @@ bool ShibokenGenerator::shouldDereferenceArgumentPointer(const AbstractMetaArgum bool ShibokenGenerator::shouldDereferenceAbstractMetaTypePointer(const AbstractMetaType* metaType) { const TypeEntry* type = metaType->typeEntry(); - return (type->isValue() || type->isObject()) && (metaType->isValue() || metaType->isReference()); + bool isPointer = metaType->indirections() > 0; + bool isCppClass = type->isValue() || type->isObject(); + return isCppClass && !isPointer && (metaType->isValue() || metaType->isReference()); } static QString checkFunctionName(QString baseName, bool genericNumberType, bool checkExact) -- cgit v1.2.3