diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-06 12:14:58 -0800 |
---|---|---|
committer | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2016-11-06 12:14:58 -0800 |
commit | 70f57fab6d4881ab94055213ccc10a3d43858f1e (patch) | |
tree | c32b5057179d2b1418b575c4f877f20acf22d12d /tests | |
parent | 0d015e9a2c3ebbd1882ada692b46375704d67a55 (diff) |
tests: Don't use ranged for loop in move tests
Some compilers support move semantics but don't support ranged for.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_xpath_api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_xpath_api.cpp b/tests/test_xpath_api.cpp index 9aa1a34..c1a4968 100644 --- a/tests/test_xpath_api.cpp +++ b/tests/test_xpath_api.cpp @@ -631,8 +631,8 @@ TEST(xpath_api_query_vector) double result = 0; - for (auto& q: qv) - result += q.evaluate_number(xml_node()); + for (size_t i = 0; i < qv.size(); ++i) + result += qv[i].evaluate_number(xml_node()); CHECK(result == 45); } |