From 8f06da75343a5e970ff7a6f275c319172e6292d0 Mon Sep 17 00:00:00 2001 From: Thorsten Schöning <6223655+ams-tschoening@users.noreply.github.com> Date: Wed, 3 Jul 2019 19:34:02 +0200 Subject: Change list to vector for outline helpers (fixes #297) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change works around STL problems with Embarcadero C++ Builder version 10.2, but std::vector is more common than std::list in qpdf, and this is a relatively new API, so an API change is tolerable. Thanks to Thorsten Schöning <6223655+ams-tschoening@users.noreply.github.com> for the fix. --- fuzz/qpdf_fuzzer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fuzz') diff --git a/fuzz/qpdf_fuzzer.cc b/fuzz/qpdf_fuzzer.cc index ac591637..32b9a0fb 100644 --- a/fuzz/qpdf_fuzzer.cc +++ b/fuzz/qpdf_fuzzer.cc @@ -170,13 +170,13 @@ void FuzzHelper::testOutlines() { PointerHolder q = getQpdf(); - std::list > queue; + std::list > queue; QPDFOutlineDocumentHelper odh(*q); queue.push_back(odh.getTopLevelOutlines()); while (! queue.empty()) { - std::list& outlines = *(queue.begin()); - for (std::list::iterator iter = + std::vector& outlines = *(queue.begin()); + for (std::vector::iterator iter = outlines.begin(); iter != outlines.end(); ++iter) { -- cgit v1.2.3-54-g00ecf