aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.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/QPDFJob.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/QPDFJob.cc')
-rw-r--r--libqpdf/QPDFJob.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc
index f1b35f56..f8d963b2 100644
--- a/libqpdf/QPDFJob.cc
+++ b/libqpdf/QPDFJob.cc
@@ -223,7 +223,7 @@ ImageOptimizer::evaluate(std::string const& description)
Pl_Discard d;
Pl_Count c("count", &d);
std::shared_ptr<Pipeline> p = makePipeline(description, &c);
- if (p.get() == nullptr) {
+ if (p == nullptr) {
// message issued by makePipeline
return false;
}
@@ -252,7 +252,7 @@ void
ImageOptimizer::provideStreamData(QPDFObjGen const&, Pipeline* pipeline)
{
std::shared_ptr<Pipeline> p = makePipeline("", pipeline);
- if (p.get() == nullptr) {
+ if (p == nullptr) {
// Should not be possible
image.warnIfPossible("unable to create pipeline after previous"
" success; image data will be lost");
@@ -2243,8 +2243,7 @@ QPDFJob::handleUnderOverlay(QPDF& pdf)
{
validateUnderOverlay(pdf, &m->underlay);
validateUnderOverlay(pdf, &m->overlay);
- if ((nullptr == m->underlay.pdf.get()) &&
- (nullptr == m->overlay.pdf.get())) {
+ if ((nullptr == m->underlay.pdf) && (nullptr == m->overlay.pdf)) {
return;
}
std::map<int, std::vector<int>> underlay_pagenos;