mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
trivial formating tweaks ... add missing white space
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34374 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
44de775895
commit
f7b8b22bae
10 changed files with 92 additions and 91 deletions
|
@ -84,10 +84,10 @@
|
|||
options: (NSUInteger)mask
|
||||
error: (NSError**)error
|
||||
{
|
||||
if((self = [super init]) != nil)
|
||||
if ((self = [super init]) != nil)
|
||||
{
|
||||
NSXMLParser *parser = [[NSXMLParser alloc] initWithData: data];
|
||||
if(parser != nil)
|
||||
if (parser != nil)
|
||||
{
|
||||
_standalone = YES;
|
||||
_children = [[NSMutableArray alloc] initWithCapacity: 10];
|
||||
|
@ -102,7 +102,7 @@
|
|||
|
||||
- (id) initWithRootElement: (NSXMLElement*)element
|
||||
{
|
||||
if([_children containsObject: element] || [element parent] != nil)
|
||||
if ([_children containsObject: element] || [element parent] != nil)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"%@ cannot be used as root of %@",
|
||||
|
@ -110,7 +110,7 @@
|
|||
self];
|
||||
}
|
||||
self = [self initWithData: nil options: 0 error: 0];
|
||||
if(self != nil)
|
||||
if (self != nil)
|
||||
{
|
||||
[self setRootElement: (NSXMLNode*)element];
|
||||
}
|
||||
|
@ -296,7 +296,7 @@
|
|||
|
||||
[_elementStack insertObject: currentElement
|
||||
atIndex: 0];
|
||||
if(_rootElement == nil)
|
||||
if (_rootElement == nil)
|
||||
{
|
||||
[self setRootElement: currentElement];
|
||||
}
|
||||
|
@ -310,10 +310,10 @@
|
|||
namespaceURI:(NSString *)namespaceURI
|
||||
qualifiedName:(NSString *)qName
|
||||
{
|
||||
if([_elementStack count] > 0)
|
||||
if ([_elementStack count] > 0)
|
||||
{
|
||||
NSXMLElement *currentElement = [_elementStack objectAtIndex: 0];
|
||||
if([[currentElement name] isEqualToString: elementName])
|
||||
if ([[currentElement name] isEqualToString: elementName])
|
||||
{
|
||||
[_elementStack removeObjectAtIndex: 0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue