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:
Marcelo Lira 2009-12-02 14:33:49 -03:00
commit da73b90ce1
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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)