aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/FileInputSource.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2022-02-06 17:40:24 +0100
committerJay Berkenbilt <ejb@ql.org>2022-02-07 23:38:22 +0100
commitc62e8e2b285b9b401d6add5a7a0da98c7ea86373 (patch)
tree040e8fa45d6b459200e57e26fbacad6ddd7414f1 /libqpdf/FileInputSource.cc
parent3f22bea084d8d64cba1a433726abd709caf8456b (diff)
downloadqpdf-c62e8e2b285b9b401d6add5a7a0da98c7ea86373.tar.zst
Update for clean compile with POINTERHOLDER_TRANSITION=2
Diffstat (limited to 'libqpdf/FileInputSource.cc')
-rw-r--r--libqpdf/FileInputSource.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/FileInputSource.cc b/libqpdf/FileInputSource.cc
index f4f37783..951b1270 100644
--- a/libqpdf/FileInputSource.cc
+++ b/libqpdf/FileInputSource.cc
@@ -27,7 +27,7 @@ FileInputSource::FileInputSource() :
void
FileInputSource::setFilename(char const* filename)
{
- this->m = new Members(true);
+ this->m = PointerHolder<Members>(new Members(true));
this->m->filename = filename;
this->m->file = QUtil::safe_fopen(filename, "rb");
}
@@ -36,7 +36,7 @@ void
FileInputSource::setFile(
char const* description, FILE* filep, bool close_file)
{
- this->m = new Members(close_file);
+ this->m = PointerHolder<Members>(new Members(close_file));
this->m->filename = description;
this->m->file = filep;
this->seek(0, SEEK_SET);