* Source/NSXMLElement.m: Correct warning in copyWithZone: added

return.  Correct issue with childCount being out of sync.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34430 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2012-01-06 03:09:14 +00:00
parent a3d5150a84
commit 5f1460c232
2 changed files with 8 additions and 0 deletions

View file

@ -218,6 +218,7 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
- (void) removeChildAtIndex: (NSUInteger)index
{
[internal->children removeObjectAtIndex: index];
internal->childCount--;
}
- (void) setChildren: (NSArray*)children
@ -240,6 +241,7 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
[child setParent: self];
[internal->children addObject: child];
// internal->childrenHaveMutated = YES;
internal->childCount++;
}
- (void) replaceChildAtIndex: (NSUInteger)index withNode: (NSXMLNode*)node
@ -313,6 +315,7 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
NSXMLNode *n = [obj copyWithZone:zone];
[self addChild: n];
}
return c;
}
@end