@@ -882,31 +882,31 @@ [_children addObject: child]; } - (void)insertChild: (OFXMLNode *)child - atIndex: (size_t)index + atIndex: (size_t)idx { if ([child isKindOfClass: [OFXMLAttribute class]]) @throw [OFInvalidArgumentException exception]; if (_children == nil) _children = [[OFMutableArray alloc] init]; [_children insertObject: child - atIndex: index]; + atIndex: idx]; } - (void)insertChildren: (OFArray *)children - atIndex: (size_t)index + atIndex: (size_t)idx { for (OFXMLNode *node in children) if ([node isKindOfClass: [OFXMLAttribute class]]) @throw [OFInvalidArgumentException exception]; [_children insertObjectsFromArray: children - atIndex: index]; + atIndex: idx]; } - (void)removeChild: (OFXMLNode *)child { if ([child isKindOfClass: [OFXMLAttribute class]]) @@ -913,13 +913,13 @@ @throw [OFInvalidArgumentException exception]; [_children removeObject: child]; } -- (void)removeChildAtIndex: (size_t)index +- (void)removeChildAtIndex: (size_t)idx { - [_children removeObjectAtIndex: index]; + [_children removeObjectAtIndex: idx]; } - (void)replaceChild: (OFXMLNode *)child withNode: (OFXMLNode *)node { @@ -929,17 +929,17 @@ [_children replaceObject: child withObject: node]; } -- (void)replaceChildAtIndex: (size_t)index +- (void)replaceChildAtIndex: (size_t)idx withNode: (OFXMLNode *)node { if ([node isKindOfClass: [OFXMLAttribute class]]) @throw [OFInvalidArgumentException exception]; - [_children replaceObjectAtIndex: index + [_children replaceObjectAtIndex: idx withObject: node]; } - (OFXMLElement *)elementForName: (OFString *)elementName {