[patch] Re: kconfiggroup template 'mess'
Thiago Macieira
thiago at kde.org
Tue Oct 30 09:56:56 GMT 2007
Em Tuesday 30 October 2007 10:04:23 Jarosław Staniek escreveu:
> > the const char* / QByteArray ones are workarounds from older times where
> > we couldn't break source compatibility.
>
> Dirk,
> I've just tried this, and we have ambiguousity:
Remove both: leave only the QString version.
QString automatically converts from const char*.
But it doesn't convert from QByteArray. A simple call to .data()
or .constData() solves the problem, or wrapping in QString::fromLatin1 or
QLatin1String.
That requires porting code, however. And breaking binary- and
source-compatibility.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071030/1212a3d3/attachment.sig>
More information about the kde-core-devel
mailing list