[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 10:22:07
[Download RAW message or body]

-----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 = "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 *.
> > 
> 
> Use the source! (from qstring.cpp)
> 
> 	bool operator==( const QString &s1, const QString &s2 )
> 	{
> 	    if ( s1.unicode() == s2.unicode() )			<= HERE!
> 		return TRUE;

I stand corrected.

- -- 
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+KSrS72KcVAmwbhARAsTlAJ93E8ZhZse2G7KUe3Hjj+5AtcIiKACfcZNF
xI06SVKngRWzrUbaFmvWGgI=
=GRm7
-----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