From a657085b40c2ab1fb45298836a741fe0f0bb0a2c Mon Sep 17 00:00:00 2001 From: renatofilho Date: Thu, 11 Nov 2010 17:45:17 -0300 Subject: Use the same function in translate type primitive types and others. Reviewer: Luciano Wolf Marcelo Lira --- generator.cpp | 6 ------ 1 file changed, 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(); -- cgit v1.2.3