diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-26 15:00:19 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2010-02-26 15:21:40 -0300 |
commit | 083d500b97e2ad5ac85402f7a6df068ca2ecbd73 (patch) | |
tree | 240a8c86fc352d1ed195583743b1c4fd5a9600fc /shibokengenerator.cpp | |
parent | 67de28cf5c65cc5137d18502caa2f0ddcd69c2af (diff) |
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 <hugo.lima@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) |