diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-02-06 17:40:24 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-02-07 23:38:22 +0100 |
commit | c62e8e2b285b9b401d6add5a7a0da98c7ea86373 (patch) | |
tree | 040e8fa45d6b459200e57e26fbacad6ddd7414f1 /libqpdf/QPDF_encryption.cc | |
parent | 3f22bea084d8d64cba1a433726abd709caf8456b (diff) | |
download | qpdf-c62e8e2b285b9b401d6add5a7a0da98c7ea86373.tar.zst |
Update for clean compile with POINTERHOLDER_TRANSITION=2
Diffstat (limited to 'libqpdf/QPDF_encryption.cc')
-rw-r--r-- | libqpdf/QPDF_encryption.cc | 4 |
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()); } |