diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-17 09:39:00 -0300 |
---|---|---|
committer | Marcelo Lira <marcelo.lira@openbossa.org> | 2009-11-18 09:22:51 -0300 |
commit | 07dcd7d4cb8d5576f028a227164f3652afc48e51 (patch) | |
tree | 8a9d443872016014c8d6710b6282be7240c4e377 /shibokengenerator.cpp | |
parent | 4141dc2c0aeca64c37f1d119948e265b9fbf16f3 (diff) |
Updated the %PYTHONTYPEOBJECT type system variable to use the new
ShiboTypeObject structure.
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index f26c872c6..4ab325a3d 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -854,8 +854,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, if (context) { // replace template variable for the Python Type object for the // class context in which the variable is used - QString pytype = cpythonTypeName(context); - code.replace("%PYTHONTYPEOBJECT", pytype); + code.replace("%PYTHONTYPEOBJECT", cpythonTypeName(context) + ".pytype"); } if (func) { @@ -887,7 +886,7 @@ void ShibokenGenerator::writeCodeSnips(QTextStream& s, // replace template variable for the Python Type object for the // class implementing the method in which the code snip is written if (func->isStatic()) { - code.replace("%PYTHONTYPEOBJECT", cpythonTypeName(func->implementingClass())); + code.replace("%PYTHONTYPEOBJECT", cpythonTypeName(func->implementingClass()) + ".pytype"); } else { code.replace("%PYTHONTYPEOBJECT.", "self->ob_type->"); code.replace("%PYTHONTYPEOBJECT", "self->ob_type"); |