summaryrefslogtreecommitdiff
path: root/tests/test_xpath_api.cpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-05-12 20:02:53 -0700
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2015-05-12 20:02:53 -0700
commit9f7994ed714e6a4ffff3959092b9720ca77de77f (patch)
treed3359d3b6700c75d05ace51ab6213c3928fc2c30 /tests/test_xpath_api.cpp
parent708952d84ebaa1e6c5fa080596bf4a5357789d5d (diff)
tests: Fix clang 3.7 warning
Work around -Wself-move using ref-deref.
Diffstat (limited to 'tests/test_xpath_api.cpp')
-rw-r--r--tests/test_xpath_api.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp
index bca22de..bd008fb 100644
--- a/tests/test_xpath_api.cpp
+++ b/tests/test_xpath_api.cpp
@@ -601,7 +601,7 @@ TEST(xpath_api_query_move)
CHECK(q4);
CHECK(q4.evaluate_boolean(c));
- q4 = std::move(q4);
+ q4 = std::move(*&q4);
CHECK(q4);
CHECK(q4.evaluate_boolean(c));