aboutsummaryrefslogtreecommitdiffstats
path: root/libtests
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-04-30 15:43:07 +0200
committerJay Berkenbilt <ejb@ql.org>2022-04-30 19:26:43 +0200
commit7f023701dd843749cf878baabeb3d33917fda62f (patch)
treeb5892c2ed7d7bd5ef296133f02600975f2d58280 /libtests
parent2878c186bf6828589d220d5b19388934514d08a7 (diff)
downloadqpdf-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')
-rw-r--r--libtests/cxx11.cc4
-rw-r--r--libtests/nntree.cc4
2 files changed, 4 insertions, 4 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);
}
{
diff --git a/libtests/nntree.cc b/libtests/nntree.cc
index f999e2e7..2296a27c 100644
--- a/libtests/nntree.cc
+++ b/libtests/nntree.cc
@@ -61,7 +61,7 @@ test_bsearch()
auto mk = [&q](std::vector<int> const& v) {
auto nums = QPDFObjectHandle::newArray();
- for (auto i : v) {
+ for (auto i: v) {
nums.appendItem(QPDFObjectHandle::newInteger(i))
.appendItem(QPDFObjectHandle::newString(
"-" + QUtil::int_to_string(i) + "-"));
@@ -199,7 +199,7 @@ test_depth()
QPDFNameTreeObjectHelper nh(n0, q);
std::cout << "--- forward ---" << std::endl;
- for (auto i : nh) {
+ for (auto i: nh) {
std::cout << i.first << " -> " << i.second.unparse() << std::endl;
}
std::cout << "--- backward ---" << std::endl;