summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_xpath_api.cpp4
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);
}