From c1b7c3bf43eccd7550a296a6b38dbf72a6879914 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Feb 13 2011 14:04:59 +0000 Subject: 2 more "taking address of temporary" bugs. --- diff --git a/PyKDE-3.16.6-gcc46.patch b/PyKDE-3.16.6-gcc46.patch index 9afc90b..da8d38e 100644 --- a/PyKDE-3.16.6-gcc46.patch +++ b/PyKDE-3.16.6-gcc46.patch @@ -26,6 +26,29 @@ diff -ur PyKDE-3.16.6/sip/kdeui/kkeydialog.sip PyKDE-3.16.6-gcc46/sip/kdeui/kkey 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