Commits

Anonymous committed dc95cc3

Use componentsJoinedByString: instead of appendString: to concatenate strings in the XML-parser helper functions.

  • Participants
  • Parent commits 63b2ad1

Comments (0)

Files changed (1)

Source/HgLogOperation.m

         //NSLog(@"No results for '%@'",xpath);
         return nil;
     }
-    NSMutableString *str = [NSMutableString string];
-    for( NSXMLNode *node in nodes )
-        [str appendString: node.stringValue];
-    return str;
+    return [[nodes valueForKey:@"stringValue"] componentsJoinedByString:@""];
 }
 
 /* Follow an XPath, returning the result as an array of strings */