aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-filter-tokens.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdf-filter-tokens.cc')
-rw-r--r--examples/pdf-filter-tokens.cc4
1 files changed, 1 insertions, 3 deletions
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<QPDFPageObjectHelper> 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