diff options
Diffstat (limited to 'sip/qt/qcstring.sip')
-rw-r--r-- | sip/qt/qcstring.sip | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sip/qt/qcstring.sip b/sip/qt/qcstring.sip index 099dab5..19387ae 100644 --- a/sip/qt/qcstring.sip +++ b/sip/qt/qcstring.sip @@ -193,19 +193,19 @@ public: if (s == NULL) s = ""; - sipRes = SIPBytes_FromString(s); + sipRes = PyBytes_FromString(s); %End %ConvertToTypeCode // Allow a Python string whenever a TQCString is expected. if (sipIsErr == NULL) - return (SIPBytes_Check(sipPy) || + return (PyBytes_Check(sipPy) || sipCanConvertToInstance(sipPy,sipClass_TQCString,SIP_NO_CONVERTORS)); - if (SIPBytes_Check(sipPy)) + if (PyBytes_Check(sipPy)) { - *sipCppPtr = new TQCString(SIPBytes_AS_STRING(sipPy)); + *sipCppPtr = new TQCString(PyBytes_AS_STRING(sipPy)); return sipGetState(sipTransferObj); } |