From a7e269537d8f4b33d1bc8a5a83c53432db9b7560 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 24 Sep 2010 20:45:18 +0000 Subject: update code to new PointerHolder, and reintroduce change that was accidentally backed out git-svn-id: svn+q:///qpdf/trunk@1031 71b93d88-0707-0410-a8cf-f5a4172ac649 --- libqpdf/QPDF_encryption.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libqpdf/QPDF_encryption.cc') diff --git a/libqpdf/QPDF_encryption.cc b/libqpdf/QPDF_encryption.cc index 51691399..7e191a27 100644 --- a/libqpdf/QPDF_encryption.cc +++ b/libqpdf/QPDF_encryption.cc @@ -571,8 +571,7 @@ QPDF::decryptString(std::string& str, int objid, int generation) pl.write((unsigned char*)str.c_str(), str.length()); pl.finish(); PointerHolder buf = bufpl.getBuffer(); - str = std::string((char*)buf.getPointer()->getBuffer(), - (size_t)buf.getPointer()->getSize()); + str = std::string((char*)buf->getBuffer(), (size_t)buf->getSize()); } else { -- cgit v1.2.3-54-g00ecf