mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 19:08:59 +00:00
Remove QPDFObjectHandle::Factory::newStream
This commit is contained in:
parent
743a735ee0
commit
bf347dfb73
@ -1496,17 +1496,6 @@ class QPDFObjectHandle
|
|||||||
{
|
{
|
||||||
return QPDFObjectHandle(obj);
|
return QPDFObjectHandle(obj);
|
||||||
}
|
}
|
||||||
static QPDFObjectHandle
|
|
||||||
newStream(
|
|
||||||
QPDF* qpdf,
|
|
||||||
QPDFObjGen const& og,
|
|
||||||
QPDFObjectHandle stream_dict,
|
|
||||||
qpdf_offset_t offset,
|
|
||||||
size_t length)
|
|
||||||
{
|
|
||||||
return QPDFObjectHandle::newStream(
|
|
||||||
qpdf, og, stream_dict, offset, length);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
friend class Factory;
|
friend class Factory;
|
||||||
|
|
||||||
@ -1621,14 +1610,6 @@ class QPDFObjectHandle
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private object factory methods
|
|
||||||
static QPDFObjectHandle newStream(
|
|
||||||
QPDF* qpdf,
|
|
||||||
QPDFObjGen const& og,
|
|
||||||
QPDFObjectHandle stream_dict,
|
|
||||||
qpdf_offset_t offset,
|
|
||||||
size_t length);
|
|
||||||
|
|
||||||
QPDF_Array* asArray();
|
QPDF_Array* asArray();
|
||||||
QPDF_Bool* asBool();
|
QPDF_Bool* asBool();
|
||||||
QPDF_Dictionary* asDictionary();
|
QPDF_Dictionary* asDictionary();
|
||||||
|
@ -1534,8 +1534,10 @@ QPDF::readObject(
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
object = QPDFObjectHandle::Factory::newStream(
|
auto stream =
|
||||||
this, og, object, stream_offset, length);
|
QPDF_Stream::create(this, og, object, stream_offset, length);
|
||||||
|
stream->setParsedOffset(stream_offset);
|
||||||
|
object = newIndirect(og, stream);
|
||||||
} else {
|
} else {
|
||||||
input->seek(cur_offset, SEEK_SET);
|
input->seek(cur_offset, SEEK_SET);
|
||||||
}
|
}
|
||||||
@ -2040,8 +2042,8 @@ QPDF::reserveObjectIfNotExists(QPDFObjGen const& og)
|
|||||||
QPDFObjectHandle
|
QPDFObjectHandle
|
||||||
QPDF::reserveStream(QPDFObjGen const& og)
|
QPDF::reserveStream(QPDFObjGen const& og)
|
||||||
{
|
{
|
||||||
return QPDFObjectHandle::Factory::newStream(
|
return QPDFObjectHandle::Factory::newIndirect(
|
||||||
this, og, QPDFObjectHandle::newDictionary(), 0, 0);
|
QPDF_Stream::create(this, og, QPDFObjectHandle::newDictionary(), 0, 0));
|
||||||
}
|
}
|
||||||
|
|
||||||
QPDFObjectHandle
|
QPDFObjectHandle
|
||||||
|
@ -2141,22 +2141,6 @@ QPDFObjectHandle::newDictionary(
|
|||||||
return QPDFObjectHandle(QPDF_Dictionary::create(items));
|
return QPDFObjectHandle(QPDF_Dictionary::create(items));
|
||||||
}
|
}
|
||||||
|
|
||||||
QPDFObjectHandle
|
|
||||||
QPDFObjectHandle::newStream(
|
|
||||||
QPDF* qpdf,
|
|
||||||
QPDFObjGen const& og,
|
|
||||||
QPDFObjectHandle stream_dict,
|
|
||||||
qpdf_offset_t offset,
|
|
||||||
size_t length)
|
|
||||||
{
|
|
||||||
QPDFObjectHandle result = QPDFObjectHandle(
|
|
||||||
QPDF_Stream::create(qpdf, og, stream_dict, offset, length));
|
|
||||||
if (offset) {
|
|
||||||
result.setParsedOffset(offset);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
QPDFObjectHandle
|
QPDFObjectHandle
|
||||||
QPDFObjectHandle::newStream(QPDF* qpdf)
|
QPDFObjectHandle::newStream(QPDF* qpdf)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user