* Source/GSNibLoading.m: Change code which adds subviews to use

an enumerator.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27273 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-10 07:26:06 +00:00
parent 8068661f12
commit ec503ee59d
2 changed files with 9 additions and 4 deletions

View file

@ -848,12 +848,12 @@ static BOOL _isInInterfaceBuilder = NO;
if (_rFlags.has_subviews)
{
NSArray *subviews = [self subviews];
int i;
NSEnumerator *en = [[self subviews] objectEnumerator];
id v = nil;
for (i = 0; i < [subviews count]; i++)
while((v = [en nextObject]) == nil)
{
[_view addSubview: [subviews objectAtIndex: i]];
[_view addSubview: v];
}
}
}