diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-23 14:37:16 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2010-11-23 14:37:16 -0200 |
commit | a8ae0680f23ca5e702a662cf36a465b7a7b2788a (patch) | |
tree | 13257f86b17d96261cd8713463bf75c14d507cbf /PySide/QtCore/glue/qbytearray_bufferprotocol.cpp | |
parent | 6cefd33cd08232b25a3b81d598b88ec47aa5aad2 (diff) |
Adapt to API changes in libshiboken.
Diffstat (limited to 'PySide/QtCore/glue/qbytearray_bufferprotocol.cpp')
-rw-r--r-- | PySide/QtCore/glue/qbytearray_bufferprotocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp b/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp index 19ee4e7b6..03ffcb4af 100644 --- a/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp +++ b/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp @@ -15,10 +15,10 @@ static Py_ssize_t SbkQByteArray_segcountproc(PyObject* self, Py_ssize_t* lenp) static Py_ssize_t SbkQByteArray_readbufferproc(PyObject* self, Py_ssize_t segment, void** ptrptr) { - if (segment || !Shiboken::Wrapper::isValid(self)) + if (segment || !Shiboken::Object::isValid(self)) return -1; - QByteArray* cppSelf = Converter<QByteArray*>::toCpp(self); + QByteArray* cppSelf = Shiboken::Converter<QByteArray*>::toCpp(self); *ptrptr = reinterpret_cast<void*>(cppSelf->data()); return cppSelf->size(); } |