summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pugixml.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 06e0bd0..586d53c 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -12196,7 +12196,9 @@ namespace pugi
PUGI__FN xpath_query::xpath_query(xpath_query&& rhs)
{
_impl = rhs._impl;
+ _result = rhs._result;
rhs._impl = 0;
+ rhs._result = xpath_parse_result();
}
PUGI__FN xpath_query& xpath_query::operator=(xpath_query&& rhs)
@@ -12207,7 +12209,9 @@ namespace pugi
impl::xpath_query_impl::destroy(static_cast<impl::xpath_query_impl*>(_impl));
_impl = rhs._impl;
+ _result = rhs._result;
rhs._impl = 0;
+ rhs._result = xpath_parse_result();
return *this;
}