On Sat, Apr 01, 2006 at 09:12:08AM +0200, Abdelrazak Younes wrote:
> Martin Vermeer a écrit :
> >On Fri, Mar 31, 2006 at 06:01:13PM +0200, Abdelrazak Younes wrote:
> [...]
> >>    for (ParIterator it = par_iterator_begin(buf.inset()); it; ++it) {
> >
> >What is the test doing in this for-loop? Shouldn't it be testing it != end,
> >with end = par_iterator_end(buf.inset()) ?
> 
> I didn't dare to ask and I think I've seen this used in other parts of 
> the code. Don't ask me if this (it==0) is a good test though...

What happens if you put in a "proper" test as I proposed?

It would at least be more legible.

- Martin

Attachment: pgpfcs9Z4eVrD.pgp
Description: PGP signature

Reply via email to