summaryrefslogtreecommitdiffstats
path: root/libqpdf/ClosedFileInputSource.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-07-31 14:33:45 +0200
committerGitHub <noreply@github.com>2022-07-31 14:33:45 +0200
commit4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52 (patch)
treea99925c17b8acddd802c705221ee71b71f891694 /libqpdf/ClosedFileInputSource.cc
parentc9cc8cfd74fdb59d5450939e1772dea35d369b04 (diff)
parent073808aa50f0c78e2d6fea4f56f0b814b314eb42 (diff)
downloadqpdf-4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52.tar.zst
Merge pull request #734 from m-holger/nullptr
Code tidy : replace 0 with nullptr or true
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 7d49bf70..dfb98c6a 100644
--- a/libqpdf/ClosedFileInputSource.cc
+++ b/libqpdf/ClosedFileInputSource.cc
@@ -23,7 +23,7 @@ ClosedFileInputSource::~ClosedFileInputSource()
void
ClosedFileInputSource::before()
{
- if (0 == this->m->fis.get()) {
+ if (nullptr == this->m->fis.get()) {
this->m->fis =
std::make_shared<FileInputSource>(this->m->filename.c_str());
this->m->fis->seek(this->m->offset, SEEK_SET);
@@ -39,7 +39,7 @@ ClosedFileInputSource::after()
if (this->m->stay_open) {
return;
}
- this->m->fis = 0;
+ this->m->fis = nullptr;
}
qpdf_offset_t