mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
* Source/NSXMLElement.m: Removing assertion that
parent must not be nil per Cocoa documentation for -(id)parent method in NSXMLNode. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34450 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
626d75a2c5
commit
343dbf37f7
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-01-06 17:57-EST Gregory John Casamento <greg.casamento@gmail.com>
|
||||
|
||||
* Source/NSXMLElement.m: Removing assertion that
|
||||
parent must not be nil per Cocoa documentation for
|
||||
-(id)parent method in NSXMLNode.
|
||||
|
||||
2012-01-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSXMLDocument.m:
|
||||
|
|
|
@ -220,9 +220,8 @@ GS_PRIVATE_INTERNAL(NSXMLElement)
|
|||
|
||||
NSAssert(nil != child, NSInvalidArgumentException);
|
||||
NSAssert(index <= internal->childCount, NSInvalidArgumentException);
|
||||
NSAssert(nil == [child parent], NSInvalidArgumentException);
|
||||
kind = [child kind];
|
||||
// FIXME ... should we check for valid kinds rather than invalid ones?
|
||||
kind = [child kind];
|
||||
// FIXME ... should we check for valid kinds rather than invalid ones?
|
||||
NSAssert(NSXMLAttributeKind != kind, NSInvalidArgumentException);
|
||||
NSAssert(NSXMLDTDKind != kind, NSInvalidArgumentException);
|
||||
NSAssert(NSXMLDocumentKind != kind, NSInvalidArgumentException);
|
||||
|
|
Loading…
Reference in a new issue