mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
* 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:
parent
a3d5150a84
commit
5f1460c232
2 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue