diff options
author | Jay Berkenbilt <ejb@ql.org> | 2010-09-24 22:45:18 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2010-09-24 22:45:18 +0200 |
commit | a7e269537d8f4b33d1bc8a5a83c53432db9b7560 (patch) | |
tree | 4fc085e51f616651b8b7efd5ef281d205f83a3e6 /libqpdf/QPDF_Stream.cc | |
parent | ce8b1ba6a5a5650d90571f5c39855af341dfad47 (diff) | |
download | qpdf-a7e269537d8f4b33d1bc8a5a83c53432db9b7560.tar.zst |
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
Diffstat (limited to 'libqpdf/QPDF_Stream.cc')
-rw-r--r-- | libqpdf/QPDF_Stream.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libqpdf/QPDF_Stream.cc b/libqpdf/QPDF_Stream.cc index db6cfb58..dc8c7f93 100644 --- a/libqpdf/QPDF_Stream.cc +++ b/libqpdf/QPDF_Stream.cc @@ -370,16 +370,15 @@ QPDF_Stream::pipeStreamData(Pipeline* pipeline, bool filter, if (this->stream_data.getPointer()) { QTC::TC("qpdf", "QPDF_Stream pipe replaced stream data"); - Buffer& b = *(this->stream_data.getPointer()); - pipeline->write(b.getBuffer(), b.getSize()); + pipeline->write(this->stream_data->getBuffer(), + this->stream_data->getSize()); pipeline->finish(); } else if (this->stream_provider.getPointer()) { - QPDFObjectHandle::StreamDataProvider& p = - (*this->stream_provider.getPointer()); Pl_Count count("stream provider count", pipeline); - p.provideStreamData(this->objid, this->generation, &count); + this->stream_provider->provideStreamData( + this->objid, this->generation, &count); size_t actual_length = count.getCount(); size_t desired_length = this->stream_dict.getKey("/Length").getIntValue(); @@ -424,7 +423,7 @@ QPDF_Stream::replaceStreamData(PointerHolder<Buffer> data, { this->stream_data = data; this->stream_provider = 0; - replaceFilterData(filter, decode_parms, data.getPointer()->getSize()); + replaceFilterData(filter, decode_parms, data->getSize()); } void |