inefficient QString coding practice

Tobias Koenig tokoe at
Sun Mar 14 14:34:42 GMT 2004

On Sun, Mar 14, 2004 at 03:03:07PM +0100, Lars Knoll wrote:
> On Saturday 13 March 2004 20:05, Tobias Koenig wrote:
Hi Lars,

> > > 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.
> Currently we have QString::fromLatin1(...). Is that better? 
No, and that's the only reason why I never use it ;)

> You can always use a typedef if you think the length is really disturbing. I 
> still prefer long but descriptive names to short but unclear ones.
me too, but not when you have to write it that often like this one.

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: <>

More information about the kde-core-devel mailing list