diff options
author | Thorsten Schöning <6223655+ams-tschoening@users.noreply.github.com> | 2019-07-03 19:34:02 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2019-07-04 02:08:47 +0200 |
commit | 8f06da75343a5e970ff7a6f275c319172e6292d0 (patch) | |
tree | 13782f4c3cdc2966cfab5e4dbd064c3ff52dbaba /include/qpdf/QPDFOutlineObjectHelper.hh | |
parent | 4db1de97cea9dfab3f3abe43766053ba0d594610 (diff) | |
download | qpdf-8f06da75343a5e970ff7a6f275c319172e6292d0.tar.zst |
Change list to vector for outline helpers (fixes #297)
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.
Diffstat (limited to 'include/qpdf/QPDFOutlineObjectHelper.hh')
-rw-r--r-- | include/qpdf/QPDFOutlineObjectHelper.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/qpdf/QPDFOutlineObjectHelper.hh b/include/qpdf/QPDFOutlineObjectHelper.hh index 9063b86f..a97cf126 100644 --- a/include/qpdf/QPDFOutlineObjectHelper.hh +++ b/include/qpdf/QPDFOutlineObjectHelper.hh @@ -24,7 +24,7 @@ #include <qpdf/QPDFObjectHelper.hh> #include <qpdf/QPDFObjGen.hh> -#include <list> +#include <vector> class QPDFOutlineDocumentHelper; @@ -55,7 +55,7 @@ class QPDFOutlineObjectHelper: public QPDFObjectHelper // Return children as a list. QPDF_DLL - std::list<QPDFOutlineObjectHelper> getKids(); + std::vector<QPDFOutlineObjectHelper> getKids(); // Return the destination, regardless of whether it is named or // explicit and whether it is directly provided or in a GoTo @@ -113,7 +113,7 @@ class QPDFOutlineObjectHelper: public QPDFObjectHelper QPDFOutlineDocumentHelper& dh; PointerHolder<QPDFOutlineObjectHelper> parent; - std::list<QPDFOutlineObjectHelper> kids; + std::vector<QPDFOutlineObjectHelper> kids; }; PointerHolder<Members> m; |