summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-11-10 17:23:47 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-11-10 17:28:58 -0200
commitf28d985527dd5674db0acbf3009f704b489eb870 (patch)
tree28cb437badf378537bc375c9437539c8c1af782c /generator
parent25b7f82404ea78fe3053cebad52a3404e82bf71d (diff)
downloadshiboken-f28d985527dd5674db0acbf3009f704b489eb870.tar.gz
shiboken-f28d985527dd5674db0acbf3009f704b489eb870.tar.xz
shiboken-f28d985527dd5674db0acbf3009f704b489eb870.zip
Fix the metaObject method written by the generator after the changed in libshiboken.
Diffstat (limited to 'generator')
-rw-r--r--generator/cppgenerator.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index e69ff3c7..68f90ce0 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -778,14 +778,14 @@ void CppGenerator::writeMetaObjectMethod(QTextStream& s, const AbstractMetaClass
s << INDENT << "if (!m_metaObject) {\n";
{
Indentation indentation(INDENT);
- s << INDENT << "PyObject *pySelf = BindingManager::instance().retrieveWrapper(this);\n"
- << INDENT << "void *typeData = Shiboken::getTypeUserData(reinterpret_cast<SbkObject*>(pySelf));" << endl
+ s << INDENT << "SbkObject* pySelf = BindingManager::instance().retrieveWrapper(this);\n"
+ << INDENT << "void* typeData = Shiboken::getTypeUserData(pySelf);" << endl
<< INDENT << "if (!typeData) {" << endl;
{
Indentation indentation2(INDENT);
- s << INDENT << "m_metaObject = PySide::DynamicQMetaObject::createBasedOn(pySelf, pySelf->ob_type, &"
+ s << INDENT << "m_metaObject = PySide::DynamicQMetaObject::createBasedOn((PyObject*)pySelf, pySelf->ob_type, &"
<< metaClass->qualifiedCppName() << "::staticMetaObject);" << endl
- << INDENT << "Shiboken::setTypeUserData(reinterpret_cast<SbkObject*>(pySelf), m_metaObject, PySide::deleteDynamicQMetaObject);" << endl;
+ << INDENT << "Shiboken::setTypeUserData(pySelf, m_metaObject, PySide::deleteDynamicQMetaObject);" << endl;
}
s << INDENT << "} else {" << endl;
{