diff options
author | Jay Berkenbilt <jberkenbilt@users.noreply.github.com> | 2022-07-31 14:33:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 14:33:45 +0200 |
commit | 4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52 (patch) | |
tree | a99925c17b8acddd802c705221ee71b71f891694 /libqpdf/QPDFObject.cc | |
parent | c9cc8cfd74fdb59d5450939e1772dea35d369b04 (diff) | |
parent | 073808aa50f0c78e2d6fea4f56f0b814b314eb42 (diff) | |
download | qpdf-4feb10fdaf51bf3f88b853cdb32a1e9b1692ba52.tar.zst |
Merge pull request #734 from m-holger/nullptr
Code tidy : replace 0 with nullptr or true
Diffstat (limited to 'libqpdf/QPDFObject.cc')
-rw-r--r-- | libqpdf/QPDFObject.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libqpdf/QPDFObject.cc b/libqpdf/QPDFObject.cc index 39a5fa50..382dd6c6 100644 --- a/libqpdf/QPDFObject.cc +++ b/libqpdf/QPDFObject.cc @@ -1,7 +1,7 @@ #include <qpdf/QPDFObject.hh> QPDFObject::QPDFObject() : - owning_qpdf(0), + owning_qpdf(nullptr), parsed_offset(-1) { } @@ -25,13 +25,13 @@ QPDFObject::getDescription(QPDF*& qpdf, std::string& description) { qpdf = this->owning_qpdf; description = this->object_description; - return this->owning_qpdf != 0; + return this->owning_qpdf != nullptr; } bool QPDFObject::hasDescription() { - return this->owning_qpdf != 0; + return this->owning_qpdf != nullptr; } void |