Changeset 61412 in webkit


Ignore:
Timestamp:
Jun 18, 2010 9:39:59 AM (14 years ago)
Author:
dumi@chromium.org
Message:

Remove some unnecessary checks that cause compiler warnings.
https://bugs.webkit.org/show_bug.cgi?id=40772

Reviewed by Dimitri Glazkov.

  • bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:

(WebCore::V8SQLResultSetRowList::itemCallback):

  • bindings/v8/npruntime.cpp:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r61411 r61412  
     12010-06-17  Dumitru Daniliuc  <dumi@chromium.org>
     2
     3        Reviewed by Dimitri Glazkov.
     4
     5        Remove some unnecessary checks that cause compiler warnings.
     6        https://bugs.webkit.org/show_bug.cgi?id=40772
     7
     8        * bindings/v8/custom/V8SQLResultSetRowListCustom.cpp:
     9        (WebCore::V8SQLResultSetRowList::itemCallback):
     10        * bindings/v8/npruntime.cpp:
     11
    1122010-06-18  Mikhail Naganov  <mnaganov@chromium.org>
    213
  • trunk/WebCore/bindings/v8/custom/V8SQLResultSetRowListCustom.cpp

    r54349 r61412  
    5757
    5858    unsigned long index = args[0]->IntegerValue();
    59     if (index < 0 || index >= rowList->length()) {
     59    if (index >= rowList->length()) {
    6060        V8Proxy::throwError(V8Proxy::RangeError, "Item index is out of range.");
    6161        return v8::Undefined();
     
    9292
    9393#endif
    94 
  • trunk/WebCore/bindings/v8/npruntime.cpp

    r59862 r61412  
    297297{
    298298    ASSERT(npObject);
    299     ASSERT(npObject->referenceCount >= 0);
    300299
    301300    if (npObject) {
Note: See TracChangeset for help on using the changeset viewer.