From 7c6901bce574fa35a610de1bec90512c6e84d05d Mon Sep 17 00:00:00 2001 From: m-holger Date: Sun, 7 Aug 2022 10:33:25 +0100 Subject: Code tidy: remove redundant calls to smart_ptrs get() method --- libqpdf/JSON.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libqpdf/JSON.cc') 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"); -- cgit v1.2.3-70-g09d2