comments on KDE performance tips
David Faure
kde-optimize@mail.kde.org
Sat, 18 Jan 2003 11:22:07 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 18 January 2003 02:58, Roger Larsson wrote:
> On Saturday 18 January 2003 02:47, David Faure wrote:
> > On Saturday 18 January 2003 02:16, Roger Larsson wrote:
> > > const QString hallo =3D "hallo"; // constructor with copy
> > > if (hallo =3D=3D hallo) ... // only compares the string storage loc=
ation
> >=20
> > Nope. This calls QString::operator=3D=3D, which compares the contents.
> > Please don't confuse QString and e.g. char *.
> >=20
>=20
> Use the source! (from qstring.cpp)
>=20
> bool operator=3D=3D( const QString &s1, const QString &s2 )
> {
> if ( s1.unicode() =3D=3D s2.unicode() ) <=3D HERE!
> return TRUE;
I stand corrected.
=2D --=20
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Klar=E4lvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+KSrS72KcVAmwbhARAsTlAJ93E8ZhZse2G7KUe3Hjj+5AtcIiKACfcZNF
xI06SVKngRWzrUbaFmvWGgI=3D
=3DGRm7
=2D----END PGP SIGNATURE-----