Updated QtNetwork's type system.
This commit is contained in:
parent
8dd72c2630
commit
69d0627af3
1 changed files with 18 additions and 20 deletions
|
|
@ -239,11 +239,11 @@
|
||||||
PyErr_SetString(PyExc_IndexError, "index out of bounds");
|
PyErr_SetString(PyExc_IndexError, "index out of bounds");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_i < 0)
|
if (_i < 0)
|
||||||
_i = 16 - qAbs(_i);
|
_i = 16 - qAbs(_i);
|
||||||
|
|
||||||
return %CONVERTTOPYTHON[uint](%CPPSELF->c[_i]);
|
uint item = %CPPSELF.c[_i];
|
||||||
|
return %CONVERTTOPYTHON[uint](item);
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</add-function>
|
</add-function>
|
||||||
<add-function signature="__len__">
|
<add-function signature="__len__">
|
||||||
|
|
@ -257,12 +257,10 @@
|
||||||
PyErr_SetString(PyExc_IndexError, "index out of bounds");
|
PyErr_SetString(PyExc_IndexError, "index out of bounds");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_i < 0)
|
if (_i < 0)
|
||||||
_i = 16 - qAbs(_i);
|
_i = 16 - qAbs(_i);
|
||||||
|
quint8 item = %CONVERTTOCPP[quint8](_value);
|
||||||
%CPPSELF->c[_i] = %CONVERTTOCPP[quint8](_value);
|
%CPPSELF.c[_i] = item;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
</inject-code>
|
</inject-code>
|
||||||
</add-function>
|
</add-function>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue