[haiku-commits] Re: r40548 - haiku/trunk/src/kits/interface

  • From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 18 Feb 2011 08:24:43 +0100

Am 18.02.2011 um 08:17 schrieb Stefano Ceccherini:

> 2011/2/18 Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>:
>> 
>> Am 17.02.2011 um 23:34 schrieb yourpalal2@xxxxxxxxx:
>> 
>>> +     if (BGroupLayout* layout = TopLayout())
>>> +             return layout->Owner();
>> 
>> Coding guideline violation: "Don't assign in if, while statements"
>> 
>> - Michael
>> 
> 
> Although I think I've seen this kind of style used a lot of times by
> Ingo, Axel, Stephan, and I actually used it too.

I just quoted the rule, it should be removed from the guidelines if
it is not valid.


Other related posts: