aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_encryption.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-06 17:40:24 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-07 22:21:36 +0100
commitb606e750eee1d0a22adeb7f804aa3f4bfe0085c2 (patch)
tree56c0454092f257a3e9aabd943f31adf8f1389620 /libqpdf/QPDF_encryption.cc
parentb0f1f5c5d5bea8a10cfa8fd204651ceb9bf9df2b (diff)
downloadqpdf-b606e750eee1d0a22adeb7f804aa3f4bfe0085c2.tar.zst
Update for clean compile with POINTERHOLDER_TRANSITION=2doc-check
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r--libqpdf/QPDF_encryption.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc
index 83768414..c97c578d 100644
--- a/libqpdf/QPDF_encryption.cc
+++ b/libqpdf/QPDF_encryption.cc
@@ -245,7 +245,7 @@ process_with_aes(std::string const& key,
aes.write(QUtil::unsigned_char_pointer(data), data.length());
}
aes.finish();
- PointerHolder<Buffer> bufp = buffer.getBuffer();
+ auto bufp = buffer.getBufferSharedPointer();
if (outlength == 0)
{
outlength = bufp->getSize();
@@ -1200,7 +1200,7 @@ QPDF::decryptString(std::string& str, int objid, int generation)
key.length());
pl.write(QUtil::unsigned_char_pointer(str), str.length());
pl.finish();
- PointerHolder<Buffer> buf = bufpl.getBuffer();
+ auto buf = bufpl.getBufferSharedPointer();
str = std::string(reinterpret_cast<char*>(buf->getBuffer()),
buf->getSize());
}