2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Format code

This commit is contained in:
Jay Berkenbilt 2024-06-07 08:07:51 -04:00
parent ee2571ea3c
commit 167057411e
3 changed files with 5 additions and 10 deletions

View File

@ -1345,10 +1345,7 @@ class QPDF
struct UpdateObjectMapsFrame struct UpdateObjectMapsFrame
{ {
UpdateObjectMapsFrame( UpdateObjectMapsFrame(ObjUser const& ou, QPDFObjectHandle oh, bool top);
ObjUser const& ou,
QPDFObjectHandle oh,
bool top);
ObjUser const& ou; ObjUser const& ou;
QPDFObjectHandle oh; QPDFObjectHandle oh;

View File

@ -3081,10 +3081,9 @@ QPDFJob::writeOutfile(QPDF& pdf)
try { try {
QUtil::remove_file(backup.c_str()); QUtil::remove_file(backup.c_str());
} catch (QPDFSystemError& e) { } catch (QPDFSystemError& e) {
*m->log->getError() *m->log->getError() << m->message_prefix << ": unable to delete original file ("
<< m->message_prefix << ": unable to delete original file (" << e.what() << ");" << e.what() << ");" << " original file left in " << backup
<< " original file left in " << backup << ", but the input was successfully replaced\n";
<< ", but the input was successfully replaced\n";
} }
} }
} }

View File

@ -346,8 +346,7 @@ QPDF::updateObjectMaps(
((ssp >= 2) && ((key == "/Filter") || (key == "/DecodeParms")))) { ((ssp >= 2) && ((key == "/Filter") || (key == "/DecodeParms")))) {
// Don't traverse into stream parameters that we are not going to write. // Don't traverse into stream parameters that we are not going to write.
} else { } else {
pending.emplace_back( pending.emplace_back(cur.ou, dict.getKey(key), false);
cur.ou, dict.getKey(key), false);
} }
} }
} }