Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed some pedantic warnings

  • Loading branch information...
commit dbd91275c57217f93417fa976fd5b57fd5a7dbcd 1 parent 8caf91b
@schwa schwa authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 Source/CXMLDocument.m
  2. +2 −2 Source/CXMLElement.m
View
6 Source/CXMLDocument.m
@@ -234,9 +234,9 @@ - (NSData *)XMLDataWithOptions:(NSUInteger)options
//- (id)objectByApplyingXSLTAtURL:(NSURL *)xsltURL arguments:(NSDictionary *)argument error:(NSError **)error;
- (id)XMLStringWithOptions:(NSUInteger)options
{
-id root = [self rootElement];
-NSMutableString* xmlString = [NSMutableString string];
-[xmlString appendString:[root XMLStringWithOptions:options]];
+CXMLElement *theRoot = [self rootElement];
+NSMutableString *xmlString = [NSMutableString string];
+[xmlString appendString:[theRoot XMLStringWithOptions:options]];
return xmlString;
}
View
4 Source/CXMLElement.m
@@ -183,9 +183,9 @@ - (CXMLNode *)namespaceForPrefix:(NSString *)name
{
if (xmlStrcmp(theCurrentNamespace->prefix, thePrefix) == 0)
{
- NSString *thePrefix = theCurrentNamespace->prefix ? [NSString stringWithUTF8String:(const char *)theCurrentNamespace->prefix] : @"";
+ NSString *thePrefixString = theCurrentNamespace->prefix ? [NSString stringWithUTF8String:(const char *)theCurrentNamespace->prefix] : @"";
NSString *theURI = [NSString stringWithUTF8String:(const char *)theCurrentNamespace->href];
- return [[[CXMLNamespaceNode alloc] initWithPrefix:thePrefix URI:theURI parentElement:self] autorelease];
+ return [[[CXMLNamespaceNode alloc] initWithPrefix:thePrefixString URI:theURI parentElement:self] autorelease];
}
theCurrentNamespace = theCurrentNamespace->next;
}
Please sign in to comment.
Something went wrong with that request. Please try again.