Updated code injections to use the new PyBaseWrapper_New signature from libshiboken.
Reviewed by Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
af6bf93d77
commit
da73b90ce1
2 changed files with 2 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ PyObject* PyQCoreApplication_New(PyTypeObject *type, PyObject *args, PyObject*)
|
||||||
}
|
}
|
||||||
|
|
||||||
QCoreApplication* cptr = new QCoreApplication(argc, argv);
|
QCoreApplication* cptr = new QCoreApplication(argc, argv);
|
||||||
PyObject* self = Shiboken::PyBaseWrapper_New(type, &PyQCoreApplication_Type, cptr);
|
PyObject* self = Shiboken::PyBaseWrapper_New(type, cptr);
|
||||||
|
|
||||||
if (!self) {
|
if (!self) {
|
||||||
if (cptr) delete cptr;
|
if (cptr) delete cptr;
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ inline bool Converter< QString >::isConvertible(PyObject* pyobj)
|
||||||
|
|
||||||
inline PyObject* Converter< QString >::createWrapper(const QString* cppobj)
|
inline PyObject* Converter< QString >::createWrapper(const QString* cppobj)
|
||||||
{
|
{
|
||||||
return PyBaseWrapper_New((PyTypeObject*)&PyQString_Type, &PyQString_Type, cppobj);
|
return PyBaseWrapper_New((PyTypeObject*)&PyQString_Type, cppobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString* Converter<QString >::copyCppObject(const QString& cppobj)
|
inline QString* Converter<QString >::copyCppObject(const QString& cppobj)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue