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 /qpdf/test_tokenizer.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 'qpdf/test_tokenizer.cc')
-rw-r--r-- | qpdf/test_tokenizer.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qpdf/test_tokenizer.cc b/qpdf/test_tokenizer.cc index 2b18eb77..f465cd46 100644 --- a/qpdf/test_tokenizer.cc +++ b/qpdf/test_tokenizer.cc @@ -198,10 +198,8 @@ process(char const* filename, bool include_ignorable, size_t max_len) // Tokenize content streams, skipping inline images QPDF qpdf; qpdf.processFile(filename); - std::vector<QPDFPageObjectHelper> pages = - QPDFPageDocumentHelper(qpdf).getAllPages(); int pageno = 0; - for (auto& page: pages) { + for (auto& page: QPDFPageDocumentHelper(qpdf).getAllPages()) { ++pageno; Pl_Buffer plb("buffer"); page.pipeContents(&plb); |