diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 15:43:07 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-04-30 19:26:43 +0200 |
commit | 7f023701dd843749cf878baabeb3d33917fda62f (patch) | |
tree | b5892c2ed7d7bd5ef296133f02600975f2d58280 /libtests/cxx11.cc | |
parent | 2878c186bf6828589d220d5b19388934514d08a7 (diff) | |
download | qpdf-7f023701dd843749cf878baabeb3d33917fda62f.tar.zst |
Formatting: remove space in range-style for loops
Change .clang-format and commit automated changes from a fresh run of
format-code
Diffstat (limited to 'libtests/cxx11.cc')
-rw-r--r-- | libtests/cxx11.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtests/cxx11.cc b/libtests/cxx11.cc index fbf3cc38..4c2c2cb6 100644 --- a/libtests/cxx11.cc +++ b/libtests/cxx11.cc @@ -122,7 +122,7 @@ do_iteration() std::vector<int> v = {1, 2, 3, 4}; assert(v.size() == 4); int sum = 0; - for (auto& i : v) { + for (auto& i: v) { sum += i; } assert(10 == sum); @@ -299,7 +299,7 @@ do_smart_pointers() auto p1 = make_c(1); C::check(1, 1, 1); auto p2 = make_c_array({2, 3, 4, 5}); - for (auto i : {1, 2, 3, 4, 5}) { + for (auto i: {1, 2, 3, 4, 5}) { C::check(5, i, 1); } { |