Changeset 12490


Ignore:
Timestamp:
Jun 7, 2011, 11:15:12 PM (10 years ago)
Author:
livings124
Message:

When moving objects in an array from an index to a lower index, no need to first fill the final destination with the object before it. This is pointless and causes issues when moving the item to index 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/NSMutableArrayAdditions.m

    r12455 r12490  
    4242    else
    4343    {
    44         for (NSUInteger i = fromIndex; i >= toIndex; --i)
     44        for (NSUInteger i = fromIndex; i > toIndex; --i)
    4545            [self replaceObjectAtIndex: i withObject: [self objectAtIndex: i-1]];
    4646    }
Note: See TracChangeset for help on using the changeset viewer.