Merge pull request #930 from m-holger/throw

Code tidy re-throwing of exceptions
This commit is contained in:
Jay Berkenbilt 2023-04-01 09:42:52 -04:00 committed by GitHub
commit 40e4d1f97c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -899,7 +899,7 @@ NNTreeImpl::find(QPDFObjectHandle key, bool return_prev_if_not_found)
repair();
return findInternal(key, return_prev_if_not_found);
} else {
throw e;
throw;
}
}
}

View File

@ -500,7 +500,7 @@ QPDF::parse(char const* password)
reconstruct_xref(e);
QTC::TC("qpdf", "QPDF reconstructed xref table");
} else {
throw e;
throw;
}
}
@ -1483,7 +1483,7 @@ QPDF::readObject(
warn(e);
length = recoverStreamLength(input, og, stream_offset);
} else {
throw e;
throw;
}
}
object = newIndirect(
@ -1684,7 +1684,7 @@ QPDF::readObjectAtOffset(
return QPDFObjectHandle::newNull();
}
} else {
throw e;
throw;
}
}

View File

@ -469,7 +469,7 @@ QPDFJob::createQPDF()
return nullptr;
}
}
throw e;
throw;
}
QPDF& pdf = *pdf_sp;
if (pdf.isEncrypted()) {
@ -1969,11 +1969,11 @@ QPDFJob::doProcess(
try {
doProcessOnce(pdf, fn, *iter, empty, used_for_input, main_input);
return;
} catch (QPDFExc& e) {
} catch (QPDFExc&) {
auto next = iter;
++next;
if (next == passwords.end()) {
throw e;
throw;
}
}
if (!warned) {