summaryrefslogtreecommitdiffstats
path: root/sip/qt/qcstring.sip
diff options
context:
space:
mode:
Diffstat (limited to 'sip/qt/qcstring.sip')
-rw-r--r--sip/qt/qcstring.sip8
1 files changed, 4 insertions, 4 deletions
diff --git a/sip/qt/qcstring.sip b/sip/qt/qcstring.sip
index 5e877e6..9f076b6 100644
--- a/sip/qt/qcstring.sip
+++ b/sip/qt/qcstring.sip
@@ -197,19 +197,19 @@ public:
if (s == NULL)
s = "";
- sipRes = PyString_FromString(s);
+ sipRes = SIPBytes_FromString(s);
%End
%ConvertToTypeCode
// Allow a Python string whenever a TQCString is expected.
if (sipIsErr == NULL)
- return (PyString_Check(sipPy) ||
+ return (SIPBytes_Check(sipPy) ||
sipCanConvertToInstance(sipPy,sipClass_TQCString,SIP_NO_CONVERTORS));
- if (PyString_Check(sipPy))
+ if (SIPBytes_Check(sipPy))
{
- *sipCppPtr = new TQCString(PyString_AS_STRING(sipPy));
+ *sipCppPtr = new TQCString(SIPBytes_AS_STRING(sipPy));
return sipGetState(sipTransferObj);
}