tests: Don't use ranged for loop in move tests

Some compilers support move semantics but don't support ranged for.
This commit is contained in:
Arseny Kapoulkine 2016-11-06 12:14:58 -08:00
parent 0d015e9a2c
commit 70f57fab6d

View file

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