mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
|
@ -1,3 +1,8 @@
|
|||
2012-01-05 22:07-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSXMLElement.m: Correct warning in copyWithZone: added
|
||||
return. Correct issue with childCount being out of sync.
|
||||
|
||||
2012-01-05 21:33-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* ChangeLog
|
||||
|
|
|
@ -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…
Reference in a new issue