Changeset 76609 in webkit


Ignore:
Timestamp:
Jan 25, 2011 10:28:35 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-01-25 Marcilio Mendonca <mamendonca@rim.com>

Reviewed by Darin Adler.

Bug 53087: Refactoring: replaced a hanging "else" with a "return"
statement
https://bugs.webkit.org/show_bug.cgi?id=53087.

Refactoring work: Replaced a hanging "else" within an #if PLATFORM(M
with a "return" so that the code is more readable and less error pro
(e.g., "else" doesn't use braces so adding extra lines to the else
block won't have any effect; even worse, code still compiles
successfully.

  • wtf/Assertions.cpp:
Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r76600 r76609  
     12011-01-25  Marcilio Mendonca  <mamendonca@rim.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Bug 53087: Refactoring: replaced a hanging "else" with a "return"
     6        statement
     7        https://bugs.webkit.org/show_bug.cgi?id=53087.
     8
     9        Refactoring work: Replaced a hanging "else" within an #if PLATFORM(M
     10        with a "return" so that the code is more readable and less error pro
     11        (e.g., "else" doesn't use braces so adding extra lines to the else
     12        block won't have any effect; even worse, code still compiles
     13        successfully.
     14
     15        * wtf/Assertions.cpp:
     16
    1172011-01-24  Chris Marrin  <cmarrin@apple.com>
    218
  • trunk/Source/JavaScriptCore/wtf/Assertions.cpp

    r72484 r76609  
    102102        CFRelease(str);
    103103        CFRelease(cfFormat);
    104     } else
     104        return;
     105    }
    105106#elif PLATFORM(BREWMP)
    106107    // When str is 0, the return value is the number of bytes needed
Note: See TracChangeset for help on using the changeset viewer.