summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-14 19:19:13 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-04-14 19:23:36 -0700
commit5158ee903be463c189a80715f92235ceb04871a7 (patch)
tree7819105030100ead1763c6936f3cd946ad24cb50 /src/pugixml.hpp
parent2badcbb6743ff803c9cd82db77a1d8a50802058f (diff)
Fix xpath_node_set assignment to provide strong exception guarantee
Since the type of the set was updated before assignment, assigning in out-of-memory condition could change the type to not match the content.
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 02ca86b..b56f66a 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -1286,7 +1286,7 @@ namespace pugi
xpath_node* _begin;
xpath_node* _end;
- void _assign(const_iterator begin, const_iterator end);
+ void _assign(const_iterator begin, const_iterator end, type_t type);
};
#endif