summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shibokengenerator.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 44d799b1..5753dcc0 100644
--- a/shibokengenerator.cpp
+++ b/shibokengenerator.cpp
@@ -158,17 +158,10 @@ QString ShibokenGenerator::translateTypeForWrapperMethod(const AbstractMetaType*
QString result;
const TypeEntry* tentry = cType->typeEntry();
- if (tentry->isValue() || tentry->isObject() || (cType->isReference() && !cType->isContainer())) {
- result = tentry->qualifiedCppName();
- if (cType->isReference())
- result.append('&');
- else if (tentry->isObject() || cType->isValuePointer())
- result.append('*');
- } else if (cType->isArray()) {
+ if (cType->isArray())
result = translateTypeForWrapperMethod(cType->arrayElementType(), context) + "[]";
- } else {
+ else
result = translateType(cType, context);
- }
return result;
}