summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-09-25 21:48:37 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2017-09-25 21:48:37 -0700
commitfebf25d1afc02de63cf86dd5199719a270c5402a (patch)
tree1c61b177681b5ed6e7c6cba543f483cdc1aa7c4c /src
parent6eb7519dbae860a789e972c63cd6e83685d961a0 (diff)
Fix -Wshadow warning
Diffstat (limited to 'src')
-rw-r--r--src/pugixml.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 36457b7..2371813 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -7010,17 +7010,17 @@ namespace pugi
doc->reserve(); // TODO: it's not clear how to handle reserve running out of memory
doc->first_child = other_first_child;
- for (xml_node_struct* child = other_first_child; child; child = child->next_sibling)
+ for (xml_node_struct* node = other_first_child; node; node = node->next_sibling)
{
#ifdef PUGIXML_COMPACT
// most children will have migrated when we reassigned compact_shared_parent
- assert(child->parent == other || child->parent == doc);
+ assert(node->parent == other || node->parent == doc);
doc->reserve(); // TODO: it's not clear how to handle reserve running out of memory
- child->parent = doc;
+ node->parent = doc;
#else
- assert(child->parent == other);
- child->parent = doc;
+ assert(node->parent == other);
+ node->parent = doc;
#endif
}