diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-17 14:16:46 -0700 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2015-10-17 14:16:46 -0700 |
commit | 65df1ef955d009b6985841ababc48ab075155a37 (patch) | |
tree | 341377a005a8f0779d5d2368e548f9fb3d53fec9 | |
parent | cf8cfb30ce76943a258950fc07a197bb3b3c784e (diff) |
Fix XPath query move ctor/operator
It now also moves parse result.
-rw-r--r-- | src/pugixml.cpp | 4 |
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; } |