aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/ClosedFileInputSource.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-05-04 18:02:39 +0200
committerJay Berkenbilt <ejb@ql.org>2022-05-04 18:07:11 +0200
commite5f3910c3ee1f6b779455fb1516ab3c985383d8e (patch)
tree54ae7548722e072bce4dbcb3fc627f85714d1836 /libqpdf/ClosedFileInputSource.cc
parente259635986a799f0b72b6040aba8c1ed870e552a (diff)
downloadqpdf-e5f3910c3ee1f6b779455fb1516ab3c985383d8e.tar.zst
Add new FileInputSource constructors
Diffstat (limited to 'libqpdf/ClosedFileInputSource.cc')
-rw-r--r--libqpdf/ClosedFileInputSource.cc4
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);
}