Commit cc108a7f1b82e4324b419f5be777063dadba0337

Authored by Jay Berkenbilt
1 parent 6afe8397

Use pipePageContents in tokenizer test

Showing 1 changed file with 1 additions and 7 deletions
qpdf/test_tokenizer.cc
... ... @@ -213,13 +213,7 @@ static void process(char const* filename, bool include_ignorable,
213 213 {
214 214 ++pageno;
215 215 Pl_Buffer plb("buffer");
216   - std::vector<QPDFObjectHandle> contents = (*iter).getPageContents();
217   - for (std::vector<QPDFObjectHandle>::iterator citer = contents.begin();
218   - citer != contents.end(); ++citer)
219   - {
220   - (*citer).pipeStreamData(&plb, 0, qpdf_dl_specialized);
221   - }
222   - plb.finish();
  216 + (*iter).pipePageContents(&plb);
223 217 PointerHolder<Buffer> content_data = plb.getBuffer();
224 218 BufferInputSource* bis = new BufferInputSource(
225 219 "content data", content_data.getPointer());
... ...