summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-04 17:03:52 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-04 19:12:37 +0100
commitabc300f05c00de72081203d89d9065b25f1ccb3c (patch)
tree3a679f3f3feb43a5ca3af536fb89832b0dd6e7b7 /include
parentf0c2e0ef1e2b10b19fea60d5e6580910a92092e1 (diff)
downloadqpdf-abc300f05c00de72081203d89d9065b25f1ccb3c.tar.zst
Replace containers of PointerHolder with containers of std::shared_ptr
None of these are in the public API.
Diffstat (limited to 'include')
-rw-r--r--include/qpdf/QPDF.hh2
-rw-r--r--include/qpdf/QPDFWriter.hh3
2 files changed, 3 insertions, 2 deletions
diff --git a/include/qpdf/QPDF.hh b/include/qpdf/QPDF.hh
index a2820e4a..ac395358 100644
--- a/include/qpdf/QPDF.hh
+++ b/include/qpdf/QPDF.hh
@@ -1024,7 +1024,7 @@ class QPDF
QPDF& qpdf_for_warning, Pipeline*& pipeline,
int objid, int generation,
QPDFObjectHandle& stream_dict,
- std::vector<PointerHolder<Pipeline> >& heap);
+ std::vector<std::shared_ptr<Pipeline>>& heap);
// Methods to support object copying
void reserveObjects(QPDFObjectHandle foreign, ObjCopier& obj_copier,
diff --git a/include/qpdf/QPDFWriter.hh b/include/qpdf/QPDFWriter.hh
index 8044d054..b434b033 100644
--- a/include/qpdf/QPDFWriter.hh
+++ b/include/qpdf/QPDFWriter.hh
@@ -35,6 +35,7 @@
#include <vector>
#include <set>
#include <map>
+#include <memory>
#include <qpdf/Constants.h>
@@ -684,7 +685,7 @@ class QPDFWriter
std::string extra_header_text;
int encryption_dict_objid;
std::string cur_data_key;
- std::list<PointerHolder<Pipeline> > to_delete;
+ std::list<std::shared_ptr<Pipeline>> to_delete;
Pl_Count* pipeline;
std::list<QPDFObjectHandle> object_queue;
std::map<QPDFObjGen, int> obj_renumber;