mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:20:38 +00:00
* Source/NSOutlineView.m (-_openItem:): Changed i fron NSUInteger
to NSInteger. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34316 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
edb7e41078
commit
74d7bc4ca5
2 changed files with 11 additions and 4 deletions
|
@ -2073,7 +2073,8 @@ Also returns the child index relative to this parent. */
|
|||
|
||||
- (void)_openItem: (id)item
|
||||
{
|
||||
NSUInteger i, insertionPoint, numChildren, numDescendants;
|
||||
NSUInteger insertionPoint, numChildren, numDescendants;
|
||||
NSInteger i;
|
||||
id object;
|
||||
id sitem = (item == nil) ? (id)[NSNull null] : (id)item;
|
||||
|
||||
|
@ -2110,15 +2111,16 @@ Also returns the child index relative to this parent. */
|
|||
// Add all of the children...
|
||||
if ([self isItemExpanded: child])
|
||||
{
|
||||
NSUInteger i, numItems;
|
||||
NSUInteger numItems;
|
||||
NSInteger j;
|
||||
NSMutableArray *insertAll = [NSMutableArray array];
|
||||
|
||||
[self _collectItemsStartingWith: child into: insertAll];
|
||||
numItems = [insertAll count];
|
||||
numDescendants += numItems;
|
||||
for (i = numItems-1; i >= 0; i--)
|
||||
for (j = numItems-1; j >= 0; j--)
|
||||
{
|
||||
[_items insertObject: [insertAll objectAtIndex: i]
|
||||
[_items insertObject: [insertAll objectAtIndex: j]
|
||||
atIndex: insertionPoint];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue