[haiku-commits] Re: haiku: hrev47639 - src/kits/tracker

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 7 Aug 2014 10:11:32 +0200 (CEST)

> On August 7, 2014 at 9:06 AM pulkomandy@xxxxxxxxxxxxx wrote:
> -                     while (ref = entryList->RemoveItemAt(0))
> +                     while ((ref = entryList->RemoveItemAt(0)))

Again, our coding style demands boolean expressions:
                        while ((ref = entryList->RemoveItemAt(0)) != NULL)

If this is a BObjectList, I'm pretty sure it can delete all items with a single
call, though, anyway.

Bye,
   Axel.

Other related posts: