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/FileInputSource.cc | |
parent | e259635986a799f0b72b6040aba8c1ed870e552a (diff) | |
download | qpdf-e5f3910c3ee1f6b779455fb1516ab3c985383d8e.tar.zst |
Add new FileInputSource constructors
Diffstat (limited to 'libqpdf/FileInputSource.cc')
-rw-r--r-- | libqpdf/FileInputSource.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc index 9b467821..08b35056 100644 --- a/libqpdf/FileInputSource.cc +++ b/libqpdf/FileInputSource.cc @@ -23,6 +23,19 @@ FileInputSource::FileInputSource() : { } +FileInputSource::FileInputSource(char const* filename) : + m(new Members(false)) +{ + setFilename(filename); +} + +FileInputSource::FileInputSource( + char const* description, FILE* filep, bool close_file) : + m(new Members(false)) +{ + setFile(description, filep, close_file); +} + void FileInputSource::setFilename(char const* filename) { |