Commit dedf9a06dfd33eadc86765f813082dcc35bf33f6
1 parent
0046de08
Fix a few things found by CLion
Showing
1 changed file
with
4 additions
and
4 deletions
libqpdf/QPDFJob.cc
| ... | ... | @@ -1269,9 +1269,9 @@ QPDFJob::doJSONEncrypt(Pipeline* p, bool& first, QPDF& pdf) |
| 1269 | 1269 | } |
| 1270 | 1270 | j_parameters.addDictionaryMember("bits", JSON::makeInt(bits)); |
| 1271 | 1271 | j_parameters.addDictionaryMember("key", key); |
| 1272 | - auto fix_method = [is_encrypted](QPDF::encryption_method_e& m) { | |
| 1273 | - if (is_encrypted && m == QPDF::e_none) { | |
| 1274 | - m = QPDF::e_rc4; | |
| 1272 | + auto fix_method = [is_encrypted](QPDF::encryption_method_e& method) { | |
| 1273 | + if (is_encrypted && method == QPDF::e_none) { | |
| 1274 | + method = QPDF::e_rc4; | |
| 1275 | 1275 | } |
| 1276 | 1276 | }; |
| 1277 | 1277 | fix_method(stream_method); |
| ... | ... | @@ -2342,7 +2342,7 @@ QPDFJob::handlePageSpecs(QPDF& pdf, std::vector<std::unique_ptr<QPDF>>& page_hea |
| 2342 | 2342 | // paths to refer to the same file is a documented workaround for duplicating a page. If |
| 2343 | 2343 | // you are using this an example of how to do this with the API, you can just create two |
| 2344 | 2344 | // different QPDF objects to the same underlying file with the same path to achieve the |
| 2345 | - // same affect. | |
| 2345 | + // same effect. | |
| 2346 | 2346 | char const* password = page_spec.password.get(); |
| 2347 | 2347 | if ((!m->encryption_file.empty()) && (password == nullptr) && |
| 2348 | 2348 | (page_spec.filename == m->encryption_file)) { | ... | ... |