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

List:       kde-optimize
Subject:    Re: comments on KDE performance tips
From:       David Faure <dfaure () klaralvdalens-datakonsult ! se>
Date:       2003-01-18 1:47:38
[Download RAW message or body]

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

On Saturday 18 January 2003 02:16, Roger Larsson wrote:
> 	const QString hallo = "hallo"; // constructor with copy
> 	if (hallo == hallo) ...  // only compares the string storage location

Nope. This calls QString::operator==, which compares the contents. 
Please don't confuse QString and e.g. char *.

- -- 
David Faure -- faure@kde.org, dfaure@klaralvdalens-datakonsult.se
Klarälvdalens 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/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+KLI672KcVAmwbhARAsPsAKCCleFQpr5UPIjFFOSQzBRADju19wCZAUPg
z/Pfm1mNetD0ykdERWiGXN4=
=q1Hl
-----END PGP SIGNATURE-----

_______________________________________________
Kde-optimize mailing list
Kde-optimize@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-optimize
[prev in list] [next in list] [prev in thread] [next in thread] 

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