[haiku-commits] Re: r37305 - haiku/trunk/src/preferences/screensaver

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 30 Jun 2010 17:24:02 +0200

Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx> wrote:
> Am 30.06.2010 um 15:50 schrieb Axel Dörfler:
> >> +                  BEntry entry(path.Path());
> >> +                  entry_ref ref;
> >> +                  if (entry.GetRef(&ref) == B_OK)
> >> +                          be_roster->Launch(&ref, &fSettings.Message(),
> >> +                                  &fScreenSaverTestTeamId);
> > * Multiline statement following if() is not enclosed in {}.
> I thought this rule was relaxed some time ago. So you could
> optionally
> enclose the body in {}.

No, we did not. We only discussed the other way around (the {} use in
the two if-statements above the one mentioned here actually followed
different styles, which is what Stippi and I talked about).

Bye,
   Axel.


Other related posts: