diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 18:02:39 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-04 18:07:11 +0200 |
commit | e5f3910c3ee1f6b779455fb1516ab3c985383d8e (patch) | |
tree | 54ae7548722e072bce4dbcb3fc627f85714d1836 /libqpdf/ClosedFileInputSource.cc | |
parent | e259635986a799f0b72b6040aba8c1ed870e552a (diff) | |
download | qpdf-e5f3910c3ee1f6b779455fb1516ab3c985383d8e.tar.zst |
Add new FileInputSource constructors
Diffstat (limited to 'libqpdf/ClosedFileInputSource.cc')
-rw-r--r-- | libqpdf/ClosedFileInputSource.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/ClosedFileInputSource.cc b/libqpdf/ClosedFileInputSource.cc index 7c4e5dbe..7d49bf70 100644 --- a/libqpdf/ClosedFileInputSource.cc +++ b/libqpdf/ClosedFileInputSource.cc @@ -24,8 +24,8 @@ void ClosedFileInputSource::before() { if (0 == this->m->fis.get()) { - this->m->fis = std::make_shared<FileInputSource>(); - this->m->fis->setFilename(this->m->filename.c_str()); + this->m->fis = + std::make_shared<FileInputSource>(this->m->filename.c_str()); this->m->fis->seek(this->m->offset, SEEK_SET); this->m->fis->setLastOffset(this->last_offset); } |