Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Listen to your friend Billy Zane!

  • Loading branch information...
commit ff8ad916427f252f70156c3ca4ddd3b08f53e3d2 1 parent 17cc2f9
@nfarina authored
Showing with 4 additions and 3 deletions.
  1. +1 −1  SMXMLDocument.h
  2. +3 −2 SMXMLDocument.m
View
2  SMXMLDocument.h
@@ -24,7 +24,7 @@
// SMXMLDocument is a very handy lightweight XML parser for iOS.
-extern NSString *SMXMLDocumentErrorDomain;
+extern NSString *const SMXMLDocumentErrorDomain;
@class SMXMLDocument;
View
5 SMXMLDocument.m
@@ -1,6 +1,6 @@
#import "SMXMLDocument.h"
-NSString *SMXMLDocumentErrorDomain = @"SMXMLDocumentErrorDomain";
+NSString *const SMXMLDocumentErrorDomain = @"SMXMLDocumentErrorDomain";
static NSError *SMXMLDocumentError(NSXMLParser *parser, NSError *parseError) {
NSMutableDictionary *userInfo = [NSMutableDictionary dictionaryWithObject:parseError forKey:NSUnderlyingErrorKey];
@@ -16,7 +16,8 @@ @implementation SMXMLElement
@synthesize document, parent, name, value, children, attributes;
- (id)initWithDocument:(SMXMLDocument *)aDocument {
- if ([super init])
+ self = [super init];
+ if (self)
self.document = aDocument;
return self;
}
Please sign in to comment.
Something went wrong with that request. Please try again.