* Source/GSXibLoader.m: Correct issue with reuse of enumerator.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35494 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-09-02 17:56:46 +00:00
parent a618ee1ac1
commit 7d65149660
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2012-09-02 13:56-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSXibLoader.m: Correct issue with reuse of enumerator.
2012-08-31 16:33-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSXibLoader.m: Cover case where there are no changes.

View file

@ -1064,8 +1064,8 @@
if([objectRecords count] > 0)
{
id record = nil;
en = [objectRecords objectEnumerator];
while((record = [en nextObject]) != nil)
NSEnumerator *oen = [objectRecords objectEnumerator];
while((record = [oen nextObject]) != nil)
{
if([[[record attributeForName:@"key"] stringValue] isEqualToString:@"object"])
{
@ -1084,13 +1084,13 @@
// NSLog(@"%@",classNode);
[[classNode attributeForName:@"class"] setStringValue:className];
// NSLog(@"Changed %@",classNode);
result = [document XMLData];
}
}
}
}
}
}
result = [document XMLData];
}
return result;