aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-02-24 15:19:36 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2010-02-24 15:41:05 -0300
commiteeb50b166bc122cf5326e842528d92b4e0914ff3 (patch)
tree797549e264741ef8608f9ccdea3f262ea43eea96 /PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
parent15cfd5f5a2da879f0ac4a1f5dfd4f2fb139ac6b4 (diff)
Custom code should use Converters instead of the "_cptr" macros.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'PySide/QtCore/glue/qbytearray_bufferprotocol.cpp')
-rw-r--r--PySide/QtCore/glue/qbytearray_bufferprotocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp b/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
index f0d15048e..4fd158789 100644
--- a/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
+++ b/PySide/QtCore/glue/qbytearray_bufferprotocol.cpp
@@ -18,7 +18,7 @@ static Py_ssize_t SbkQByteArray_readbufferproc(PyObject* self, Py_ssize_t segmen
if (segment || Shiboken::cppObjectIsInvalid(self))
return -1;
- QByteArray* cppSelf = SbkQByteArray_cptr(self);
+ QByteArray* cppSelf = Converter<QByteArray*>::toCpp(self);
*ptrptr = reinterpret_cast<void*>(cppSelf->data());
return cppSelf->size();
}