Fix XPath query move ctor/operator
It now also moves parse result.
This commit is contained in:
parent
cf8cfb30ce
commit
65df1ef955
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue