From 6c69a747b9f7a801be2ad58985f35886bd38239e Mon Sep 17 00:00:00 2001 From: m-holger Date: Sat, 21 May 2022 15:18:15 +0100 Subject: Code clean up: use range-style for loops wherever possible Remove variables obsoleted by commit 4f24617. --- examples/pdf-filter-tokens.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'examples/pdf-filter-tokens.cc') diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc index 3d4bad8b..ccacc8c2 100644 --- a/examples/pdf-filter-tokens.cc +++ b/examples/pdf-filter-tokens.cc @@ -191,9 +191,7 @@ main(int argc, char* argv[]) try { QPDF pdf; pdf.processFile(infilename); - std::vector pages = - QPDFPageDocumentHelper(pdf).getAllPages(); - for (auto& page: pages) { + for (auto& page: QPDFPageDocumentHelper(pdf).getAllPages()) { // Attach two token filters to each page of this file. // When the file is written, or when the pages' contents // are retrieved in any other way, the filters will be -- cgit v1.2.3-54-g00ecf