[haiku-commits] Re: haiku: hrev45422 - src/apps/deskbar

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 29 Mar 2013 12:44:23 +0100

On 03/29/2013 01:57 AM, jscipione@xxxxxxxxx wrote:
>  {
> +  for (int32 i = 0; i < kIconCacheCount; i++)
> +          iconCache[i] = NULL;
>  }

How about an _Init() method called by all constructors instead?

+const int32 kIconCacheCount = (kMaximumIconSize - kMinimumIconSize)
+                                                               / 
kIconSizeInterval + 1;

The second line should only be indented a single tab.

Bye,
   Axel.


Other related posts: