summaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDFJob.cc
diff options
context:
space:
mode:
authorm-holger <m-holger@kubitscheck.org>2022-08-07 11:33:25 +0200
committerm-holger <m-holger@kubitscheck.org>2022-08-07 11:33:25 +0200
commit7c6901bce574fa35a610de1bec90512c6e84d05d (patch)
tree122be9afae6fbee5f4fa524d27d00251b0fcdb05 /libqpdf/QPDFJob.cc
parenta9c0b026683cc1f9f86a22a0e080940f55d5760d (diff)
downloadqpdf-7c6901bce574fa35a610de1bec90512c6e84d05d.tar.zst
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;