diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-11-11 17:45:17 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2010-11-22 15:14:32 -0300 |
commit | a657085b40c2ab1fb45298836a741fe0f0bb0a2c (patch) | |
tree | 9c80d70188a6aee8fdc076179961d94d43d14ca4 | |
parent | 5d930c0cd91db82654c227969b57206eca5a74a2 (diff) |
Use the same function in translate type primitive types and others.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
-rw-r--r-- | generator.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/generator.cpp b/generator.cpp index 11b4a9586..3798eff51 100644 --- a/generator.cpp +++ b/generator.cpp @@ -293,12 +293,6 @@ QString Generator::translateType(const AbstractMetaType *cType, s = "int"; else s = cType->cppSignature(); - } else if (cType->typeEntry()->isPrimitive()) { - s = cType->cppSignature(); - if ((options & Generator::ExcludeConst) && cType->isConstant()) - s.remove(0, 5); - if ((options & Generator::ExcludeReference) && cType->isReference()) - s.chop(1); } else { if (options & Generator::OriginalName) { s = cType->originalTypeDescription().trimmed(); |