Skip to content
Snippets Groups Projects
Commit 70f57fab authored by Arseny Kapoulkine's avatar Arseny Kapoulkine
Browse files

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

Some compilers support move semantics but don't support ranged for.
parent 0d015e9a
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment