Oswald Buddenhagen ossi at kde.org
Tue Oct 5 13:11:06 BST 2010

On Tue, Oct 05, 2010 at 02:02:48PM +0200, Thiago Macieira wrote:
> Em Terça-feira 05 Outubro 2010, às 13:27:47, laurent Montel escreveu:
> > For me it will good to have it by default (not now :) but I can continue to
> > fix compile)
> > 
> > What do you think about it ?
> This is not necessary for applications. For applications, leaving the cast 
> from ASCII is not a problem. In fact, it's slightly more efficient.
errrm, no, it isn't - quite to the contrary: comparison functions which
have explict qlatin1string overrides are faster than with implicit
qstring::fromascii construction. same for qchar. and the "wrapper class"
itself is optimized away in release builds, so it doesn't add overhead.

the one gripe i have with the QLatin1* classes is the verbosity of the
code. this makes aliases like QL1S() pretty common.

More information about the kde-core-devel mailing list