diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-09-03 14:02:05 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-09-03 14:07:07 +0200 |
commit | dedf9a06dfd33eadc86765f813082dcc35bf33f6 (patch) | |
tree | 4f43966f9856316798240a3232acae46a7f2ef19 | |
parent | 0046de0852e5fcdc2dfe50de35f6a9922eb6326a (diff) | |
download | qpdf-dedf9a06dfd33eadc86765f813082dcc35bf33f6.tar.zst |
Fix a few things found by CLion
-rw-r--r-- | libqpdf/QPDFJob.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index bb17ae84..b8ae7787 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -1269,9 +1269,9 @@ QPDFJob::doJSONEncrypt(Pipeline* p, bool& first, QPDF& pdf) } j_parameters.addDictionaryMember("bits", JSON::makeInt(bits)); j_parameters.addDictionaryMember("key", key); - auto fix_method = [is_encrypted](QPDF::encryption_method_e& m) { - if (is_encrypted && m == QPDF::e_none) { - m = QPDF::e_rc4; + auto fix_method = [is_encrypted](QPDF::encryption_method_e& method) { + if (is_encrypted && method == QPDF::e_none) { + method = QPDF::e_rc4; } }; fix_method(stream_method); @@ -2342,7 +2342,7 @@ QPDFJob::handlePageSpecs(QPDF& pdf, std::vector<std::unique_ptr<QPDF>>& page_hea // paths to refer to the same file is a documented workaround for duplicating a page. If // you are using this an example of how to do this with the API, you can just create two // different QPDF objects to the same underlying file with the same path to achieve the - // same affect. + // same effect. char const* password = page_spec.password.get(); if ((!m->encryption_file.empty()) && (password == nullptr) && (page_spec.filename == m->encryption_file)) { |