diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-10-18 15:48:24 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:30 -0300 |
commit | 7dc999dab8eccfbee983206d70f7925fb1f629df (patch) | |
tree | d6d6c6fdcb745acc68de4b8abac9e6935e766388 /tests/samplebinding | |
parent | c27cfbae2f17e93509eb527a198a922775213364 (diff) |
Updated custom code for ByteArray's read/write buffer protocol.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r-- | tests/samplebinding/bytearray_bufferprotocol.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/bytearray_bufferprotocol.cpp b/tests/samplebinding/bytearray_bufferprotocol.cpp index b3a6a83f4..671f14e57 100644 --- a/tests/samplebinding/bytearray_bufferprotocol.cpp +++ b/tests/samplebinding/bytearray_bufferprotocol.cpp @@ -13,7 +13,7 @@ static Py_ssize_t SbkByteArray_readbufferproc(PyObject* self, Py_ssize_t segment if (segment || !Shiboken::Object::isValid(self)) return -1; - ByteArray* cppSelf = Shiboken::Converter<ByteArray*>::toCpp(self); + ByteArray* cppSelf = %CONVERTTOCPP[ByteArray*](self); *ptrptr = reinterpret_cast<void*>(const_cast<char*>(cppSelf->data())); return cppSelf->size(); } |