From e5f3910c3ee1f6b779455fb1516ab3c985383d8e Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Wed, 4 May 2022 12:02:39 -0400 Subject: Add new FileInputSource constructors --- libqpdf/QPDF.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libqpdf/QPDF.cc') 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(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(fi), password); } -- cgit v1.2.3-54-g00ecf