diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 15:47:36 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2010-08-29 15:47:36 +0000 |
commit | 012b712389792ad5916cc8c24f330c706822d9a4 (patch) | |
tree | 886ef15c122645921f574f02105e484038e47300 /src | |
parent | b75c5360f3d0a2e2609fd4de58a83369a7c745a2 (diff) |
XPath: xpath_node attribute constructor now never constructs a non-attribute node
git-svn-id: http://pugixml.googlecode.com/svn/trunk@690 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src')
-rw-r--r-- | src/pugixml.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp index c2b26f0..f21ab7f 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -5562,7 +5562,7 @@ namespace pugi { } - xpath_node::xpath_node(const xml_attribute& attribute, const xml_node& parent): _node(parent), _attribute(attribute) + xpath_node::xpath_node(const xml_attribute& attribute, const xml_node& parent): _node(attribute ? parent : xml_node()), _attribute(attribute) { } |