From 3cb9d875024fdedd52564ea916e19a5311621bba Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Feb 13 2011 13:04:52 +0000 Subject: 1 more "taking address of temporary" bug. --- diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch index f07e077..18eb394 100644 --- a/PyKDE-3.16.6-gcc46.patch +++ b/PyKDE-3.16.6-gcc46.patch @@ -52,3 +52,16 @@ diff -ur PyKDE-3.16.6/sip/kio/kservicetype.sip PyKDE-3.16.6-gcc46/sip/kio/kservi 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 *)svc;