mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Update NSXMLElement.m to satisfy older compilers
This commit is contained in:
parent
f5f8f61e54
commit
fdffcbdd27
1 changed files with 4 additions and 2 deletions
|
@ -364,7 +364,8 @@ extern void ensure_oldNs(xmlNodePtr node);
|
|||
|
||||
// Remove all previous attributes
|
||||
NSArray *currentAttributes = [self attributes];
|
||||
for (int index = [currentAttributes count]-1; index >= 0; index--)
|
||||
int index;
|
||||
for (index = [currentAttributes count]-1; index >= 0; index--)
|
||||
{
|
||||
NSXMLNode *attrNode = [currentAttributes objectAtIndex:index];
|
||||
NSString *name = [attrNode name];
|
||||
|
@ -389,7 +390,8 @@ extern void ensure_oldNs(xmlNodePtr node);
|
|||
|
||||
// Remove all previous attributes
|
||||
NSArray *currentAttributes = [self attributes];
|
||||
for (int index = [currentAttributes count]-1; index >= 0; index--)
|
||||
int index;
|
||||
for (index = [currentAttributes count]-1; index >= 0; index--)
|
||||
{
|
||||
NSXMLNode *attrNode = [currentAttributes objectAtIndex:index];
|
||||
NSString *name = [attrNode name];
|
||||
|
|
Loading…
Reference in a new issue