Skip to content

Commit af3c0d0

Browse files
committed
Revert "Add const for loop variable in regression_test.cc"
This reverts commit af09a15. The RegressionTest::update_content_lengths method modifies the state so it cannot be const. Therefore the test here cannot be const.
1 parent af09a15 commit af3c0d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/regression/regression_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ std::unique_ptr<RegressionTests> RegressionTests::from_yajl_node(const yajl_val
280280
}
281281

282282
void RegressionTests::update_content_lengths() {
283-
for (const auto &test : tests) {
283+
for (auto & test : tests) {
284284
test->update_content_lengths();
285285
}
286286
}

0 commit comments

Comments
 (0)