[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Two optimization questions
From: Luís_Pedro_Coelho <luis () luispedro ! org>
Date: 2004-04-21 18:18:45
Message-ID: 200404211918.50117.luis () luispedro ! org
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Maybe this is pointing out the obvious, but then again, maybe not:
On Tuesday 20 April 2004 22:23, Adriaan de Groot wrote:
> QStringList::constIterator e = l.end();
> for (QStringList::constIterator i = l.begin() ; i!=e; ++i) { .. }
I tend to use this, but you can write it all in one line (with the correct
variable scope, as well):
for (QStringList::constIterator i = l.begin(), e =l.end(); i != e; ++i)
{ ... }
Regards,
- --
Luís Pedro Coelho
check out my game of hearts for the KDE at
http://hearts.luispedro.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAhrsIGpBAvyRwXdgRAo53AJ41cPPInFobtb0wBQh9at85mXejegCfTMAr
3XgRvf6dSkOSqGlz+GJAMvU=
=QTRy
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic