aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-10-18 15:48:24 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:30 -0300
commit7dc999dab8eccfbee983206d70f7925fb1f629df (patch)
treed6d6c6fdcb745acc68de4b8abac9e6935e766388 /tests/samplebinding
parentc27cfbae2f17e93509eb527a198a922775213364 (diff)
Updated custom code for ByteArray's read/write buffer protocol.
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/bytearray_bufferprotocol.cpp2
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();
}