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:
parent
0d015e9a2c
commit
70f57fab6d
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue