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

  • From: John Scipione <jscipione@xxxxxxxxx>
  • To: "haiku-commits@xxxxxxxxxxxxx" <haiku-commits@xxxxxxxxxxxxx>
  • Date: Wed, 14 Nov 2012 14:43:34 -0500

On Wed, Nov 14, 2012 at 2:33 PM, Axel DÃrfler <axeld@xxxxxxxxxxxxxxxx> wrote:
> On 11/14/2012 08:02 PM, jscipione@xxxxxxxxx wrote:
>> +       if (fAppListMenuItem != NULL) {
>> +               RemoveItem(static_cast<BMenuItem*>(fAppListMenuItem));
>
> ... why should the cast be necessary in the first place? fAppListMenuItem is
> a TBarMenuTitle which directly subclasses BMenuItem without any special
> tricks involved.

I just checked and you are correct, the cast is not needed. Will correct.

Other related posts: