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

List:       kde-devel
Subject:    Re: "Fixed" post-increment operators on iterators
From:       "Frederik Schmid" <frederik.schmid () swipnet ! se>
Date:       2004-10-31 11:59:32
Message-ID: opsgqgxiwhvfpe9m () janus ! swipnet ! se
[Download RAW message or body]

> also, while you're at it there, you should cache the end(), like:
>
> QStringList::ConstIterator itEnd = matches.end();
> for(QStringList::ConstIterator it = matches.begin(); it != itEnd; ++it)
>      _keyList->insertItem(*it);
>
> that should be even a bit faster =)
>

The compiler will (almost certainly) move loop-conditions out ouf the  
loop, so no need to add extra lines in this case.
 
>> 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