[PyKDE/f15/master] 1 more "taking address of temporary" bug.
Kevin Kofler
kkofler at fedoraproject.org
Sun Feb 13 13:05:13 UTC 2011
commit 3cb9d875024fdedd52564ea916e19a5311621bba
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Sun Feb 13 14:04:52 2011 +0100
1 more "taking address of temporary" bug.
PyKDE-3.16.6-gcc46.patch | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
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<KService> *)svc;
More information about the scm-commits
mailing list