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/QPDF.cc | |
parent | e259635986a799f0b72b6040aba8c1ed870e552a (diff) | |
download | qpdf-e5f3910c3ee1f6b779455fb1516ab3c985383d8e.tar.zst |
Add new FileInputSource constructors
Diffstat (limited to 'libqpdf/QPDF.cc')
-rw-r--r-- | libqpdf/QPDF.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libqpdf/QPDF.cc b/libqpdf/QPDF.cc index aa99942c..8b8dd59e 100644 --- a/libqpdf/QPDF.cc +++ b/libqpdf/QPDF.cc @@ -270,8 +270,7 @@ QPDF::~QPDF() void QPDF::processFile(char const* filename, char const* password) { - FileInputSource* fi = new FileInputSource(); - fi->setFilename(filename); + FileInputSource* fi = new FileInputSource(filename); processInputSource(std::shared_ptr<InputSource>(fi), password); } @@ -279,8 +278,7 @@ void QPDF::processFile( char const* description, FILE* filep, bool close_file, char const* password) { - FileInputSource* fi = new FileInputSource(); - fi->setFile(description, filep, close_file); + FileInputSource* fi = new FileInputSource(description, filep, close_file); processInputSource(std::shared_ptr<InputSource>(fi), password); } |