diff options
Diffstat (limited to 'generator')
-rw-r--r-- | generator/cppgenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp index d3300423e..01db203e2 100644 --- a/generator/cppgenerator.cpp +++ b/generator/cppgenerator.cpp @@ -2014,7 +2014,7 @@ void CppGenerator::writeMethodCall(QTextStream& s, const AbstractMetaFunction* f if (func->injectedCodeSnips(CodeSnip::Any, TypeSystem::TargetLangCode).isEmpty()) { qFatal(qPrintable("No way to call \"" + func->ownerClass()->name() + "::" + func->minimalSignature() - + "\" with the modifications described in the type system file")); + + "\" with the modifications described in the type system file"), NULL); } } else if (func->isOperatorOverload()) { QString firstArg("(*" CPP_SELF_VAR ")"); @@ -3535,10 +3535,10 @@ void CppGenerator::writeSetattroFunction(QTextStream& s, const AbstractMetaClass s << "static int " << cpythonSetattroFunctionName(metaClass) << "(PyObject* self, PyObject* name, PyObject* value)" << endl; s << '{' << endl; if (usePySideExtensions()) { - s << INDENT << "Shiboken::AutoDecRef pp(PySide::qpropertyGetObject(self, name));" << endl; + s << INDENT << "Shiboken::AutoDecRef pp(reinterpret_cast<PyObject*>(PySide::qpropertyGetObject(self, name)));" << endl; s << INDENT << "if (!pp.isNull())" << endl; Indentation indent(INDENT); - s << INDENT << INDENT << "return PySide::qpropertySet(pp, self, value);" << endl; + s << INDENT << "return PySide::qpropertySet(reinterpret_cast<PySideQProperty*>(pp.object()), self, value);" << endl; } s << INDENT << "return PyObject_GenericSetAttr(self, name, value);" << endl; s << '}' << endl; @@ -3579,7 +3579,7 @@ void CppGenerator::writeGetattroFunction(QTextStream& s, const AbstractMetaClass s << INDENT << "if (attr && PySide::isQPropertyType(attr)) {" << endl; { Indentation indent(INDENT); - s << INDENT << "PyObject *value = PySide::qpropertyGet(attr, self);" << endl; + s << INDENT << "PyObject *value = PySide::qpropertyGet(reinterpret_cast<PySideQProperty*>(attr), self);" << endl; s << INDENT << "if (!value)" << endl; { Indentation indentation(INDENT); |