[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] PyKDE-3.11alpha7 bug (KDE3.2.x, sip 3.10.1)
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2004-04-29 6:44:39
Message-ID: 200404290744.40802.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Thursday 29 April 2004 6:54 am, Jim Bublitz wrote:
> In PyKDE-3.11alpha7 there is one bug that will prevent compiling
> on sip 3.10.1.
>
> In kdecore/kmacroexpander.sip, change line 218:
>
> 218:    sipConvertTo_QString (key, (void **)&sKey, &iserr);
>
> to:
>
> #if SIP_VERSION >= 0x040000
>         sipConvertTo_QString (key, (void **)&sKey, &iserr);
> #else
>         sipConvertTo_QString (key, &sKey, &iserr);
> #endif
>
> This only applies for KDE >= 3.2.0 and doesn't affect releases
> before alpha7.

I would suggest the following instead...

sKey = reinterpret_cast<QString *>(sipForceConvertTo_QString(key, &iserr));

...which will work on SIP 3 & 4.

Phil

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic