aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2018-01-31 03:42:45 +0100
committerJay Berkenbilt <ejb@ql.org>2018-02-19 03:05:46 +0100
commitcc108a7f1b82e4324b419f5be777063dadba0337 (patch)
treecd5bcb0db22ea2344d85770fc54dc7798f104c54
parent6afe83978fe1d310e8a41774c33052d880f2f524 (diff)
downloadqpdf-cc108a7f1b82e4324b419f5be777063dadba0337.tar.zst
Use pipePageContents in tokenizer test
-rw-r--r--qpdf/test_tokenizer.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/qpdf/test_tokenizer.cc b/qpdf/test_tokenizer.cc
index aa6c8acc..955af1ec 100644
--- a/qpdf/test_tokenizer.cc
+++ b/qpdf/test_tokenizer.cc
@@ -213,13 +213,7 @@ static void process(char const* filename, bool include_ignorable,
{
++pageno;
Pl_Buffer plb("buffer");
- std::vector<QPDFObjectHandle> contents = (*iter).getPageContents();
- for (std::vector<QPDFObjectHandle>::iterator citer = contents.begin();
- citer != contents.end(); ++citer)
- {
- (*citer).pipeStreamData(&plb, 0, qpdf_dl_specialized);
- }
- plb.finish();
+ (*iter).pipePageContents(&plb);
PointerHolder<Buffer> content_data = plb.getBuffer();
BufferInputSource* bis = new BufferInputSource(
"content data", content_data.getPointer());