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

List:       kde-core-devel
Subject:    Re: [patch] Re: kconfiggroup template 'mess'
From:       Thiago Macieira <thiago () kde ! org>
Date:       2007-10-30 9:56:56
Message-ID: 200710301056.57054.thiago () kde ! org
[Download RAW message or body]


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

["signature.asc" (application/pgp-signature)]

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

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