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

List:       kde-core-devel
Subject:    Re: inefficient QString coding practice
From:       Thiago Macieira <thiago.macieira () kdemail ! net>
Date:       2004-03-13 13:38:54
Message-ID: 200403131038.56831.thiago.macieira () kdemail ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dr. Juergen Pfennig wrote:
>If we look into QT's source code, we find that QT would handle
>
>  if( extension == ".wav")
>    ...
>
>much more efficient, because it has an overloaded == operator for
> "const char*". Here is the source from qstring.cpp:

Only if QT_NO_CAST_ASCII isn't given. If it is given, then all the 
implicit const char* to QString conversions are withheld.

- -- 
  Thiago Macieira  -  Registered Linux user #65028
   thiago (AT) macieira (DOT) info
    ICQ UIN: 1967141   PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAUw7uM/XwBW70U1gRAvVOAKCmg5N8/MamqC19YxBwjZUGdZgFwQCfcH3V
SHRVXBAmwAT3SeQIp1sZfZQ=
=8zzy
-----END PGP SIGNATURE-----

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

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