aboutsummaryrefslogtreecommitdiffstats
path: root/libtests/json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtests/json.cc')
-rw-r--r--libtests/json.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/libtests/json.cc b/libtests/json.cc
index 17a5d574..43f2b3c6 100644
--- a/libtests/json.cc
+++ b/libtests/json.cc
@@ -130,10 +130,8 @@ check_schema(
std::list<std::string> errors;
std::cout << "--- " << description << std::endl;
assert(exp == obj.checkSchema(schema, flags, errors));
- for (std::list<std::string>::iterator iter = errors.begin();
- iter != errors.end();
- ++iter) {
- std::cout << *iter << std::endl;
+ for (auto const& error: errors) {
+ std::cout << error << std::endl;
}
std::cout << "---" << std::endl;
}