Use fast enumeration

This commit is contained in:
Gregory John Casamento 2020-07-05 21:12:02 -04:00
parent 93fe3a260c
commit 2ed95a86b9

View file

@ -40,6 +40,7 @@
#import "AppKit/NSWindow.h"
#import "GNUstepGUI/GSModelLoaderFactory.h"
#import "GSFastEnumeration.h"
static NSStoryboard *__mainStoryboard = nil;
@ -375,8 +376,6 @@ static NSStoryboard *__mainStoryboard = nil;
{
NSXMLElement *docNode = [docNodes objectAtIndex: 0];
NSArray *array = [docNode nodesForXPath: @"//scene" error: NULL];
NSEnumerator *en = [array objectEnumerator];
NSXMLElement *e = nil;
NSString *customClassString = nil;
// Set initial view controller...
@ -543,7 +542,7 @@ static NSStoryboard *__mainStoryboard = nil;
NSXMLElement *coel = nil;
while ((coel = [coen nextObject]) != nil)
{
NSXMLNode *attr = [coel attributeForName: @"sceneMemberID"];
NSXMLNode *attr = [coel attributeForName: @"sceneMemberID"];
if ([[attr stringValue] isEqualToString: @"firstResponder"])
{
NSXMLNode *customClassAttr = [coel attributeForName: @"customClass"];