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

  • From: Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 2 Oct 2012 22:59:16 +0200

2012/10/2  <kallisti5@xxxxxxxxxxx>:
> hrev44673 adds 1 changeset to branch 'master'
> old head: 9af3b8357592d97fbe2b01f6f0cbee8d4eade538
> new head: ff09527e4f6f674c4df23e39b365b84e87bfac43
>
> ----------------------------------------------------------------------------
>
> ff09527: Tracker: Introduce "Restart Deskbar" option (+alpha3)
> +       BMenuItem* item;
> +
> +       BRoster roster;
> +       if (!roster.IsRunning(kDeskbarSignature)) {
> +               item = new BMenuItem(B_TRANSLATE("Restart Deskbar"),
> +                       new BMessage(kRestartDeskbar));
> +               menu->AddItem(item);
> +               menu->AddSeparatorItem();
> +       }
> +

IMO the variable declaration should happen where it is used first.

Bye,
Jérôme

Other related posts: