aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/JSON.cc
diff options
context:
space:
mode:
authorJay Berkenbilt <jberkenbilt@users.noreply.github.com>2022-08-07 14:41:50 +0200
committerGitHub <noreply@github.com>2022-08-07 14:41:50 +0200
commitb90adb1c6ce922fe80d0e3287d76b181bffa4c44 (patch)
tree2f6766238f3d4e9048e77dc5fe9bfd7108202593 /libqpdf/JSON.cc
parent7537391222e1b592beb7a294efe34dd393409d07 (diff)
parent7c6901bce574fa35a610de1bec90512c6e84d05d (diff)
downloadqpdf-b90adb1c6ce922fe80d0e3287d76b181bffa4c44.tar.zst
Merge pull request #746 from m-holger/smart
Code tidy: remove redundant calls to smart_ptrs get() method
Diffstat (limited to 'libqpdf/JSON.cc')
-rw-r--r--libqpdf/JSON.cc4
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");