aboutsummaryrefslogtreecommitdiffstats
path: root/generator/headergenerator.cpp
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-01 16:49:00 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:07:19 -0300
commit871a08552d72b49f39761a6b99cce12a0765f3cd (patch)
tree63a59cb08c5c51ecd1344712589cd91304adec81 /generator/headergenerator.cpp
parent8cc21eee84d96240510750d627e4bfccff5f40db (diff)
Implement generation support to target conversion.
Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'generator/headergenerator.cpp')
-rw-r--r--generator/headergenerator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/generator/headergenerator.cpp b/generator/headergenerator.cpp
index f9384d58e..39db3c6ed 100644
--- a/generator/headergenerator.cpp
+++ b/generator/headergenerator.cpp
@@ -214,7 +214,7 @@ void HeaderGenerator::writeTypeConverterDecl(QTextStream& s, const TypeEntry* ty
implicitConvs << func;
}
bool isValueTypeWithImplConversions = type->isValue() && !implicitConvs.isEmpty();
- bool hasCustomConversion = type->hasConversionRule();
+ bool hasCustomConversion = type->hasNativeConversionRule();
QString typeT = type->name() + (isAbstractOrObjectType ? "*" : "");
QString typeName = type->name();
@@ -450,7 +450,7 @@ void HeaderGenerator::finishGeneration()
s << "// User defined converters --------------------------------------------" << endl;
foreach (TypeEntry* typeEntry, TypeDatabase::instance()->entries()) {
- if (typeEntry->hasConversionRule()) {
+ if (typeEntry->hasNativeConversionRule()) {
s << "// Conversion rule for: " << typeEntry->name() << endl;
s << typeEntry->conversionRule();
}
@@ -503,7 +503,7 @@ void HeaderGenerator::writeSbkCopyCppObjectFunction(QTextStream& s, const Abstra
void HeaderGenerator::writeTypeConverterImpl(QTextStream& s, const TypeEntry* type)
{
- if (type->hasConversionRule())
+ if (type->hasNativeConversionRule())
return;
QString pyTypeName = cpythonTypeName(type);