diff -ur PyKDE-3.16.6/sip/kdecore/kmountpoint.sip PyKDE-3.16.6-gcc46/sip/kdecore/kmountpoint.sip
--- PyKDE-3.16.6/sip/kdecore/kmountpoint.sip 2009-06-10 22:52:40.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kdecore/kmountpoint.sip 2011-02-13 12:19:36.000000000 +0100
@@ -136,7 +136,10 @@
KMountPoint::List::Iterator it;
for( it = cList->begin(); it != cList->end(); ++it )
{
- inst = sipConvertFromType(&(KMountPoint::Ptr)(*it), sipType_KMountPoint_Ptr, sipTransferObj);
+ {
+ KMountPoint::Ptr p = *it;
+ inst = sipConvertFromType(&p, sipType_KMountPoint_Ptr, sipTransferObj);
+ }
if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
{
diff -ur PyKDE-3.16.6/sip/kdeui/kkeydialog.sip PyKDE-3.16.6-gcc46/sip/kdeui/kkeydialog.sip
--- PyKDE-3.16.6/sip/kdeui/kkeydialog.sip 2009-06-10 23:40:27.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kdeui/kkeydialog.sip 2011-02-13 12:39:23.000000000 +0100
@@ -204,7 +204,8 @@
while (it.current ())
{
- PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QCString, sipTransferObj);
+ QString key = it.currentKey ();
+ PyObject *a0 = sipConvertFromInstance (&key, sipClass_QCString, sipTransferObj);
PyObject *a1 = PyInt_FromLong ((long) it.current ());
if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))
diff -ur PyKDE-3.16.6/sip/kio/kfilemetainfo.sip PyKDE-3.16.6-gcc46/sip/kio/kfilemetainfo.sip
--- PyKDE-3.16.6/sip/kio/kfilemetainfo.sip 2006-09-22 05:11:14.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/kfilemetainfo.sip 2011-02-13 15:04:41.000000000 +0100
@@ -256,7 +256,8 @@
%MethodCode
//returns (KFileMetaInfoItem)
//takes key | (QString)
- sipRes = &((*sipCpp) [(const QString&) *a0]);
+ KFileMetaInfoItem item = (*sipCpp) [(const QString&) *a0];
+ sipRes = &item;
%End
%End
@@ -339,7 +340,8 @@
%MethodCode
//returns (KFileMetaInfoGroup)
//takes key | (QString)
- sipRes = &((*sipCpp) [(const QString&)*a0]);
+ KFileMetaInfoGroup group = (*sipCpp) [(const QString&)*a0];
+ sipRes = &group;
%End
%End
diff -ur PyKDE-3.16.6/sip/kio/kservicegroup.sip PyKDE-3.16.6-gcc46/sip/kio/kservicegroup.sip
--- PyKDE-3.16.6/sip/kio/kservicegroup.sip 2009-06-10 22:58:33.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/kservicegroup.sip 2011-02-13 13:06:46.000000000 +0100
@@ -235,7 +235,8 @@
KServiceGroup::List::Iterator it;
for( it = cList->begin(); it != cList->end(); ++it )
{
- svcGroupType = &(KServiceGroup::SPtr)(*it);
+ KServiceGroup::SPtr p = *it;
+ svcGroupType = &p;
inst = sipConvertFromType(svcGroupType, sipType_KSycocaEntry_Ptr, sipTransferObj);
if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
diff -ur PyKDE-3.16.6/sip/kio/kservice.sip PyKDE-3.16.6-gcc46/sip/kio/kservice.sip
--- PyKDE-3.16.6/sip/kio/kservice.sip 2009-06-10 22:59:28.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/kservice.sip 2011-02-13 14:36:44.000000000 +0100
@@ -235,7 +235,8 @@
KService::List::Iterator it;
for( it = cList->begin(); it != cList->end(); ++it )
{
- svc = &(KService::Ptr)(*it);
+ KService::Ptr p = *it;
+ svc = &p;
inst = sipConvertFromType(svc, sipType_KService_Ptr, sipTransferObj);
if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
diff -ur PyKDE-3.16.6/sip/kio/kservicetype.sip PyKDE-3.16.6-gcc46/sip/kio/kservicetype.sip
--- PyKDE-3.16.6/sip/kio/kservicetype.sip 2009-06-10 23:48:24.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/kservicetype.sip 2011-02-13 13:06:13.000000000 +0100
@@ -240,7 +240,8 @@
QValueList<KServiceType::Ptr>::Iterator it;
for( it = cList->begin(); it != cList->end(); ++it )
{
- svc = &(KServiceType::Ptr)(*it);
+ KServiceType::Ptr p = *it;
+ svc = &p;
inst = sipConvertFromType(svc, sipType_KServiceType_Ptr, sipTransferObj);
if ((inst == NULL) || (PyList_Append (plist, inst) < 0))
diff -ur PyKDE-3.16.6/sip/kio/ksycocaentry.sip PyKDE-3.16.6-gcc46/sip/kio/ksycocaentry.sip
--- PyKDE-3.16.6/sip/kio/ksycocaentry.sip 2009-06-10 23:01:05.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kio/ksycocaentry.sip 2011-02-13 14:03:53.000000000 +0100
@@ -144,7 +144,8 @@
KSycocaEntry::List::Iterator it;
for( it = cList->begin(); it != cList->end(); ++it )
{
- svc = &(KSycocaEntry::Ptr)(*it);
+ KSycocaEntry::Ptr p = *it;
+ svc = &p;
if (svc->data ()->sycocaType () == KST_KService)
{
svcType = (KSharedPtr<KService> *)svc;
diff -ur PyKDE-3.16.6/sip/kmdi/kmdichildfrm.sip PyKDE-3.16.6-gcc46/sip/kmdi/kmdichildfrm.sip
--- PyKDE-3.16.6/sip/kmdi/kmdichildfrm.sip 2009-06-10 23:49:47.000000000 +0200
+++ PyKDE-3.16.6-gcc46/sip/kmdi/kmdichildfrm.sip 2011-02-13 15:20:32.000000000 +0100
@@ -218,7 +218,8 @@
while (it.current ())
{
- PyObject *a0 = sipConvertFromInstance (&it.currentKey (), sipClass_QString, sipTransferObj);
+ QString key = it.currentKey ();
+ PyObject *a0 = sipConvertFromInstance (&key, sipClass_QString, sipTransferObj);
PyObject *a1 = PyInt_FromLong ((long) it.current ());
if ((a0 == NULL) || (a1 == NULL) || (PyDict_SetItem (dict, a0, a1) < 0))