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

List:       kde-core-devel
Subject:    Re: inefficient QString coding practice
From:       Tobias Koenig <tokoe () kde ! org>
Date:       2004-03-13 19:05:15
Message-ID: 20040313190514.GC26197 () ghostdog
[Download RAW message or body]


On Sat, Mar 13, 2004 at 07:35:21PM +0100, Lars Knoll wrote:
> On Saturday 13 March 2004 15:02, Harri Porten wrote:
Hi Lars,

> We actually know about this problem and already have a solution for this in Qt 
> 4. It's called QLatin1String and is a simple wrapper around a const char *.
> 
> So you can then write
> 
> if(str == QLatin1String("foo")) { ... }
Hmm, and you think the lazy developer will type 'QLatin1String' for
every short "foobar" string?!?
Can't we use a shorter name? Such a long name disturbs the whole code
layout.

Ciao,
Tobias
-- 
Separate politics from religion and economy!

["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