inefficient QString coding practice

Tobias Koenig tokoe at kde.org
Sat Mar 13 19:05:15 GMT 2004


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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040313/17fa7ed3/attachment.sig>


More information about the kde-core-devel mailing list