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 /examples/pdf-name-number-tree.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 'examples/pdf-name-number-tree.cc')
-rw-r--r-- | examples/pdf-name-number-tree.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/pdf-name-number-tree.cc b/examples/pdf-name-number-tree.cc index 347bfb69..939105e9 100644 --- a/examples/pdf-name-number-tree.cc +++ b/examples/pdf-name-number-tree.cc @@ -77,7 +77,7 @@ main(int argc, char* argv[]) // Use range-for iteration std::cout << "Name tree items:" << std::endl; - for (auto i : name_tree) { + for (auto i: name_tree) { std::cout << " " << i.first << " -> " << i.second.unparse() << std::endl; } @@ -86,7 +86,7 @@ main(int argc, char* argv[]) // look at it using dictionary and array iterators. std::cout << "Keys in name tree object:" << std::endl; QPDFObjectHandle names; - for (auto const& i : name_tree_oh.ditems()) { + for (auto const& i: name_tree_oh.ditems()) { std::cout << i.first << std::endl; if (i.first == "/Names") { names = i.second; @@ -94,7 +94,7 @@ main(int argc, char* argv[]) } // Values in names array: std::cout << "Values in names:" << std::endl; - for (auto& i : names.aitems()) { + for (auto& i: names.aitems()) { std::cout << " " << i.unparse() << std::endl; } @@ -149,7 +149,7 @@ main(int argc, char* argv[]) } std::cout << "Numbers:" << std::endl; int n = 1; - for (auto& i : number_tree) { + for (auto& i: number_tree) { std::cout << i.first << " -> " << i.second.getUTF8Value(); if (n % 5) { std::cout << ", "; @@ -172,7 +172,7 @@ main(int argc, char* argv[]) } std::cout << "Numbers after filtering:" << std::endl; n = 1; - for (auto& i : number_tree) { + for (auto& i: number_tree) { std::cout << i.first << " -> " << i.second.getUTF8Value(); if (n % 5) { std::cout << ", "; |