inefficient QString coding practice
Thiago Macieira
thiago.macieira at kdemail.net
Sat Mar 13 13:38:54 GMT 2004
-----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-----
More information about the kde-core-devel
mailing list