Changeset 85068 in webkit


Ignore:
Timestamp:
Apr 27, 2011 11:35:50 AM (13 years ago)
Author:
ojan@chromium.org
Message:

2011-04-27 Ojan Vafai <ojan@chromium.org>

Reviewed by Dan Bernstein.

change style guide to pre-increment in for-loops
https://bugs.webkit.org/show_bug.cgi?id=59619

This matches what a number of reviewers have been asking
for in code reviews.

  • coding/coding-style.html:
Location:
trunk/Websites/webkit.org
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Websites/webkit.org/ChangeLog

    r85008 r85068  
     12011-04-27  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Dan Bernstein.
     4
     5        change style guide to pre-increment in for-loops
     6        https://bugs.webkit.org/show_bug.cgi?id=59619
     7
     8        This matches what a number of reviewers have been asking
     9        for in code reviews.
     10
     11        * coding/coding-style.html:
     12
    1132011-04-26  Carol Szabo  <carol.szabo@nokia.com>
    214
  • trunk/Websites/webkit.org/coding/coding-style.html

    r83127 r85068  
    186186<h4 class="right">Right:</h4>
    187187<pre class="code">
    188 for (int i = 0; i &lt; 10; i++)
     188for (int i = 0; i &lt; 10; ++i)
    189189    doSomething();
    190190
     
    194194<h4 class="wrong">Wrong:</h4>
    195195<pre class="code">
    196 for (int i = 0 ; i &lt; 10 ; i++)
     196for (int i = 0 ; i &lt; 10 ; ++i)
    197197    doSomething();
    198198
     
    341341}
    342342
    343 for (int i = 0; i &lt; 10; i++) {
     343for (int i = 0; i &lt; 10; ++i) {
    344344    ...
    345345}
Note: See TracChangeset for help on using the changeset viewer.