mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 01:20:38 +00:00
* 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:
parent
8068661f12
commit
ec503ee59d
2 changed files with 9 additions and 4 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue