summaryrefslogtreecommitdiffstats
path: root/sip/tdeio
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdeio')
-rw-r--r--sip/tdeio/authinfo.sip2
-rw-r--r--sip/tdeio/kacl.sip2
-rw-r--r--sip/tdeio/kservicetype.sip6
3 files changed, 5 insertions, 5 deletions
diff --git a/sip/tdeio/authinfo.sip b/sip/tdeio/authinfo.sip
index e4f3a97..95ff7da 100644
--- a/sip/tdeio/authinfo.sip
+++ b/sip/tdeio/authinfo.sip
@@ -151,7 +151,7 @@ typedef TQMap<TQString, TQStringList> KStringListMap;
for (it = map.begin (); it != map.end (); ++it)
{
- PyObject *sKey = PyString_FromString ((const char *)((TQString)it.key ()));
+ PyObject *sKey = SIPBytes_FromString ((const char *)((TQString)it.key ()));
PyObject *sData = sipConvertFromInstance ((void *)&it.data (), sipClass_TQStringList, sipTransferObj);
if ((sKey == NULL) || (sData == NULL) || (PyDict_SetItem (dict, sKey, sData) < 0))
diff --git a/sip/tdeio/kacl.sip b/sip/tdeio/kacl.sip
index 2156e3b..31059f0 100644
--- a/sip/tdeio/kacl.sip
+++ b/sip/tdeio/kacl.sip
@@ -152,7 +152,7 @@ typedef ACLUserPermissionsList ACLGroupPermissionsList;
delete cpplist;
return 0;
}
- ushort p2 = (ushort)(PyInt_AS_LONG (PyTuple_GET_ITEM (elem, 1)));
+ ushort p2 = (ushort)(PyLong_AS_LONG (PyTuple_GET_ITEM (elem, 1)));
cpplist->append (ACLUserPermissions (*p1, p2));
diff --git a/sip/tdeio/kservicetype.sip b/sip/tdeio/kservicetype.sip
index 7d261b8..5d093e7 100644
--- a/sip/tdeio/kservicetype.sip
+++ b/sip/tdeio/kservicetype.sip
@@ -155,7 +155,7 @@ protected:
TQString acpp = it.key ();
int bcpp = (int) it.data ();
PyObject *ainst;
- PyObject *binst = PyInt_FromLong (bcpp);
+ PyObject *binst = PyLong_FromLong (bcpp);
if (((ainst = sipConvertFromNewType(new TQString (acpp), sipType_TQString, sipTransferObj)) == NULL)
|| (PyDict_SetItem (dict, ainst, binst) < 0))
{
@@ -189,7 +189,7 @@ protected:
acpp = (TQString *)sipForceConvertToType(aelem, sipType_TQString, sipTransferObj, SIP_NOT_NONE, &acpp_state, &iserr);
- if (iserr || !PyInt_Check(belem))
+ if (iserr || !PyLong_Check(belem))
{
if (acpp_state)
sipReleaseType(acpp, sipType_TQString, acpp_state);
@@ -199,7 +199,7 @@ protected:
return 0;
}
- bcpp = (TQVariant::Type) PyInt_AS_LONG(belem);
+ bcpp = (TQVariant::Type) PyLong_AS_LONG(belem);
cppmap->insert (*acpp, bcpp);