tweak to raise exception in node init if we don't have libxml2

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39116 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-11-02 09:07:39 +00:00
parent f341ff0528
commit 58362f14b5
2 changed files with 6 additions and 7 deletions

View file

@ -531,7 +531,6 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
#else
#import "Foundation/NSException.h"
#import "Foundation/NSXMLDocument.h"
@implementation NSXMLDocument
@ -558,12 +557,7 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
- (id) init
{
NSString *className = NSStringFromClass([self class]);
DESTROY(self);
[NSException raise: NSGenericException
format: @"%@ - no libxml2 at configure time", className];
return nil;
return [super init];
}
- (id) initWithContentsOfURL: (NSURL*)url

View file

@ -2092,6 +2092,7 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
#else
#import "Foundation/NSException.h"
#import "Foundation/NSXMLNode.h"
@implementation NSXMLNode
@ -2221,7 +2222,11 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
- (id) init
{
NSString *className = NSStringFromClass([self class]);
DESTROY(self);
[NSException raise: NSGenericException
format: @"%@ - no libxml2 at configure time", className];
return nil;
}