[haiku-commits] Re: haiku: hrev47046 - src/libs/icon

  • From: Axel Dörfler <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 23 Mar 2014 22:34:30 +0100

On 03/23/2014 10:01 PM, superstippi@xxxxxx wrote:
+       ArrayDeleter<uint8> _(buffer);

BTW, at least Ingo and I agreed that using '_' as a variable name is not that a good idea. While it's convenient to use, it's quite easy to overlook it, ie. to differentiate it from the following line of code:
> +  ArrayDeleter<uint8> (buffer);

That just shortens the lifetime of this object quite a bit.

(FWIW that's a typo Ingo actually did to prove this could actually be a problem :-))

Bye,
   Axel.


Other related posts: