[PyKDE] Ivalid cast (PyKDE-snapshot20050316, GCC 4)

Jim Bublitz jbublitz at nwinternet.com
Fri Mar 18 23:39:26 GMT 2005


On Friday 18 March 2005 13:46, Akos Polster wrote:
> ...and I have no SIP skills at all, so thanks for the clarification.
> This seems to satisfy GCC 4 and GCC 3.3.4 both:

>         KURL::List           operator + (const KURL::List&);
> %MethodCode
> //returns (KURL.List)
> //takes listToAdd | (KURL.List)
>     Py_BEGIN_ALLOW_THREADS
>     sipRes = new KURL::List(*sipCpp);
>     (*sipRes) += (*a0);
>     Py_END_ALLOW_THREADS
> %End

> Do you need a formal patch please let me know

Works here too - I'll add it to the next snapshot.

Do you (or anyone) have an explanation of why this works and the original 
doesn't?

Jim




More information about the PyQt mailing list