aboutsummaryrefslogtreecommitdiffstats
path: root/shibokengenerator.cpp
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-04-29 11:21:42 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-04-29 15:45:11 -0300
commit902c70b6f34c6c712d867047d2e58ac41864c0be (patch)
tree9f37207fa7d4a809893b0174c016bd93aae21327 /shibokengenerator.cpp
parent6553c81c39d5c2c6cbea2b6350052493b388419c (diff)
Use translateTypeForWrapperMethod for all types.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Reviewer: Renato Araújo <renato.araujo@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r--shibokengenerator.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp
index 44d799b1e..5753dcc09 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;
}