From 36960dceb368474b0c83993f988604b3e91d602e Mon Sep 17 00:00:00 2001 From: iska Date: Sat, 25 Apr 2015 13:21:08 +0200 Subject: [PATCH] Rename node parameter in the validation method of HTML Node for clarity --- HTMLKit/HTMLNode.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/HTMLKit/HTMLNode.m b/HTMLKit/HTMLNode.m index 13dd6b8..be7a196 100644 --- a/HTMLKit/HTMLNode.m +++ b/HTMLKit/HTMLNode.m @@ -258,14 +258,14 @@ return node; } -NS_INLINE void CheckParentValid(HTMLNode *node, NSString *cmd) +NS_INLINE void CheckParentValid(HTMLNode *parent, NSString *cmd) { - if (node.type != HTMLNodeDocument && - node.type != HTMLNodeDocumentFragment && - node.type != HTMLNodeElement) { + if (parent.type != HTMLNodeDocument && + parent.type != HTMLNodeDocumentFragment && + parent.type != HTMLNodeElement) { [NSException raise:HTMLKitHierarchyRequestError format:@"%@: Hierarchy Request Error, inserting into %@ is not allowed. The operation would yield an incorrect node tree.", - cmd, node.name]; + cmd, parent.name]; } }