diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-05-21 16:18:15 +0200 |
---|---|---|
committer | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-05-21 22:06:29 +0200 |
commit | 6c69a747b9f7a801be2ad58985f35886bd38239e (patch) | |
tree | a35f002d4564ad1811044335c34f1b510a6774b8 /examples/pdf-overlay-page.cc | |
parent | 70ccd807c45f477d6caf73b9390ba3acda53d1db (diff) | |
download | qpdf-6c69a747b9f7a801be2ad58985f35886bd38239e.tar.zst |
Code clean up: use range-style for loops wherever possible
Remove variables obsoleted by commit 4f24617.
Diffstat (limited to 'examples/pdf-overlay-page.cc')
-rw-r--r-- | examples/pdf-overlay-page.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/pdf-overlay-page.cc b/examples/pdf-overlay-page.cc index f9603d9c..594f139e 100644 --- a/examples/pdf-overlay-page.cc +++ b/examples/pdf-overlay-page.cc @@ -40,9 +40,7 @@ stamp_page(char const* infile, char const* stampfile, char const* outfile) QPDFObjectHandle stamp_fo = inpdf.copyForeignObject(foreign_fo); // For each page... - std::vector<QPDFPageObjectHelper> pages = - QPDFPageDocumentHelper(inpdf).getAllPages(); - for (auto& ph: pages) { + for (auto& ph: QPDFPageDocumentHelper(inpdf).getAllPages()) { // Find a unique resource name for the new form XObject QPDFObjectHandle resources = ph.getAttribute("/Resources", true); int min_suffix = 1; |