Fix XPath query move ctor/operator

It now also moves parse result.
This commit is contained in:
Arseny Kapoulkine 2015-10-17 14:16:46 -07:00
parent cf8cfb30ce
commit 65df1ef955

View file

@ -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;
}