aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pdf-overlay-page.cc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pdf-overlay-page.cc')
-rw-r--r--examples/pdf-overlay-page.cc4
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;