summaryrefslogtreecommitdiffstats
path: root/generator/headergenerator.cpp
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-10-01 16:49:00 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-10-01 17:25:46 -0300
commit645ab74a7d87b845c375cff83c432107a512efc5 (patch)
treed83a71acd73c3dd2abe0533b459d0e96d951257b /generator/headergenerator.cpp
parent9f05e7d6b625c738f96f16d02f27f93bb1c3fbd9 (diff)
downloadshiboken-645ab74a7d87b845c375cff83c432107a512efc5.tar.gz
shiboken-645ab74a7d87b845c375cff83c432107a512efc5.tar.xz
shiboken-645ab74a7d87b845c375cff83c432107a512efc5.zip
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 f9384d58..39db3c6e 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);