diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-08-07 11:33:25 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-08-07 11:33:25 +0200 |
commit | 7c6901bce574fa35a610de1bec90512c6e84d05d (patch) | |
tree | 122be9afae6fbee5f4fa524d27d00251b0fcdb05 /libqpdf/JSON.cc | |
parent | a9c0b026683cc1f9f86a22a0e080940f55d5760d (diff) | |
download | qpdf-7c6901bce574fa35a610de1bec90512c6e84d05d.tar.zst |
Code tidy: remove redundant calls to smart_ptrs get() method
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r-- | libqpdf/JSON.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libqpdf/JSON.cc b/libqpdf/JSON.cc index c825413e..07180cf5 100644 --- a/libqpdf/JSON.cc +++ b/libqpdf/JSON.cc @@ -204,7 +204,7 @@ JSON::JSON_blob::write(Pipeline* p, size_t) const void JSON::write(Pipeline* p, size_t depth) const { - if (nullptr == this->m->value.get()) { + if (nullptr == this->m->value) { *p << "null"; } else { this->m->value->write(p, depth); @@ -1122,7 +1122,7 @@ JSONParser::handleToken() break; } - if ((item.get() == nullptr) == (delimiter == '\0')) { + if ((item == nullptr) == (delimiter == '\0')) { throw std::logic_error( "JSONParser::handleToken: logic error: exactly one of item" " or delimiter must be set"); |