diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 19:53:16 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-07 23:38:22 +0100 |
commit | 40f1946df8acb0bb7fefdc3ab31f6285bb11d032 (patch) | |
tree | 87776a2a5f628bca1f4a1a0f46c4544aac7749e2 /libqpdf/Pl_DCT.cc | |
parent | dd4f30226f3d4738e198dfcb944ce4cdc7e50a86 (diff) | |
download | qpdf-40f1946df8acb0bb7fefdc3ab31f6285bb11d032.tar.zst |
Replace PointerHolder arrays with shared_ptr arrays where possible
Replace PointerHolder arrays wherever it can be done without breaking ABI.
Diffstat (limited to 'libqpdf/Pl_DCT.cc')
-rw-r--r-- | libqpdf/Pl_DCT.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libqpdf/Pl_DCT.cc b/libqpdf/Pl_DCT.cc index e4646dab..5b42b827 100644 --- a/libqpdf/Pl_DCT.cc +++ b/libqpdf/Pl_DCT.cc @@ -283,8 +283,7 @@ Pl_DCT::compress(void* cinfo_p, Buffer* b) # pragma GCC diagnostic pop #endif static int const BUF_SIZE = 65536; - PointerHolder<unsigned char> outbuffer_ph( - true, new unsigned char[BUF_SIZE]); + auto outbuffer_ph = std::make_unique<unsigned char[]>(BUF_SIZE); unsigned char* outbuffer = outbuffer_ph.get(); jpeg_pipeline_dest(cinfo, outbuffer, BUF_SIZE, this->getNext()); |